Advertisement
fauzanjeg

Remove Tag Opening Word

May 17th, 2021
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. /* Remove Tag Opening Word */
  2. add_filter( 'get_the_archive_title', 'remove_tag_opening_word');
  3.  
  4. function remove_tag_opening_word ($title) {
  5.     if ( is_tag() ) {    
  6.         $title = single_tag_title( '', false );    
  7.     }
  8.     return $title;    
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement