[wp-trac] [WordPress Trac] #34259: Dynamic 'do_feed_{$feed}' action should have a static equivalent

WordPress Trac noreply at wordpress.org
Mon Oct 12 11:58:59 UTC 2015


#34259: Dynamic 'do_feed_{$feed}' action should have a static equivalent
-------------------------+-----------------------------
 Reporter:  slimndap     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Feeds        |    Version:  4.3.1
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 There should be a static `do_feed` action in `do_feed()`.

 This way developers can generate content based on the feed name. This is
 not possible with the current 'do_feed_{$feed}' action.

 Example:

 I have an events plugin and I want my users to set up different feeds with
 date and category filters. They can do this on an admin options page.

 The hook could look like this:

 {{{
 do_action( 'do_feed', $feed, $wp_query->is_comment_feed );
 }}}

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


More information about the wp-trac mailing list