Advertisement
fauzanjeg

Remove Prefix Title on Archive Page

Dec 6th, 2021
1,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. /* Remove Prefix Title on Archive Page */
  2. function remove_prefix_title_on_archive_page( $prefix ) {
  3.     if ( is_archive() ) {
  4.         $prefix = '';
  5.     }
  6.     return $prefix;
  7. }
  8. add_filter( 'get_the_archive_title_prefix', 'remove_prefix_title_on_archive_page' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement