[wp-trac] [WordPress Trac] #42905: add_filter( 'the_title',<func>, 99 ); woudn't fire after add_shortcode

WordPress Trac noreply at wordpress.org
Thu Dec 14 20:10:49 UTC 2017


#42905: add_filter( 'the_title',<func>, 99 ); woudn't fire after add_shortcode
--------------------------+-----------------------------
 Reporter:  strech        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I need to edit the title after add_shortcode was called. for the_content
 it works but not for the_title. This will be always fire after
 add_shortcode.

 {{{#!php
 <?php
         add_shortcode("gallery_collection", array( $this, "show"));
         add_filter('the_content', array( $this, "replaceContent"),99);
         add_filter( 'the_title', array( $this, "replaceTitle"), 99 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42905>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list