[wp-trac] [WordPress Trac] #42905: add_filter( 'the_title',<func>, 99 ); woudn't fire after add_shortcode
WordPress Trac
noreply at wordpress.org
Fri Dec 15 03:23:50 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: Shortcodes | Version: 4.9.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by dd32):
This sounds like you're hoping to filter `the_title` based on data set by
the shortcode callback?
If that's the case, the issue you're likely facing is that shortcodes are
run at time of display, and in general, the title has already been output
to the page at that point in time. However, as it's still processing the
content, you can filter the post content from data set by the shortcode.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42905#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list