[wp-trac] [WordPress Trac] #31237: improve get_the_archive_title() with new filter

WordPress Trac noreply at wordpress.org
Fri Feb 12 13:31:16 UTC 2016

#31237: improve get_the_archive_title() with new filter
 Reporter:  ramiy        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  4.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
Changes (by ramiy):

 * keywords:   => has-patch


 The patch adds a filter that allows you to show/hide the archive page

 By default it shows the prefix. for backwards-compatibility.

 Use this filter to hide the prefix:
 // Remove archive title prefix
 add_filter( 'archive_title_prefix', '__return_false' );

Ticket URL: <https://core.trac.wordpress.org/ticket/31237#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list