[wp-trac] [WordPress Trac] #34259: Dynamic 'do_feed_{$feed}' action should have a static equivalent
WordPress Trac
noreply at wordpress.org
Mon Oct 12 20:59:26 UTC 2015
#34259: Dynamic 'do_feed_{$feed}' action should have a static equivalent
------------------------------------+-----------------------------
Reporter: slimndap | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Feeds | Version: 4.3.1
Severity: normal | Resolution:
Keywords: needs-patch needs-docs | Focuses: template
------------------------------------+-----------------------------
Changes (by johnbillion):
* milestone: Awaiting Review => Future Release
Comment:
Got it. Thanks for the info.
With dynamic hook names like this, the dynamic portion of the hook name is
often passed as an argument to help with situations just like this. For
example `{type}_template`, `add_option_{option}`, etc.
So, `$feed` should be added as a parameter to the `do_feed_{feed}` action.
I don't think there's need for a new action here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34259#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list