[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:14:52 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 | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by strech):
Replying to [ticket:42905 strech]:
>
> 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 );
> }}}
Sorry i mean "This will be always fire BEFORE add_shortcode."
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42905#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list