[wp-trac] [WordPress Trac] #41179: Adding get_the_content-filter

WordPress Trac noreply at wordpress.org
Tue Apr 17 21:32:00 UTC 2018


#41179: Adding get_the_content-filter
--------------------------------------+------------------------------
 Reporter:  Ninos Ego                 |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Themes                    |     Version:  4.8
 Severity:  normal                    |  Resolution:
 Keywords:  needs-codex dev-feedback  |     Focuses:  docs, template
--------------------------------------+------------------------------

Comment (by Ninos Ego):

 Why it would break all kinds of themes, plugins or core? It does not
 replace params. Also atm plugins, themes and core just uses ''add_filter(
 'the_content', 'yourfunction', PRIORITY )''
 , no admin is using here the param ''$accepted_args'', because not needed.
 If used, they have to use 1. So it's not breaking anything. The other
 params are optional.

 ''get_the_content()''-filter is needed for plugins to change content in
 themes. The params ''$more_link_text''
 & ''$strip_teaser'' can then be used by plugins e.g. to readd the
 ''$more_link_text'' after changing content.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41179#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list