[wp-trac] [WordPress Trac] #45349: wp_get_recent_posts() Add filter for $args

WordPress Trac noreply at wordpress.org
Wed Nov 14 13:38:36 UTC 2018


#45349: wp_get_recent_posts() Add filter for $args
-----------------------------+-----------------------------
 Reporter:  sergey.r         |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  5.0
 Severity:  major            |   Keywords:  has-patch
  Focuses:                   |
-----------------------------+-----------------------------
 Add a filter so that plugins and themes can filter the arguments.

 **Why is this needed:**
 Plugins may want to filter arguments in some situations. Eg. WPML will
 need to display posts in the current language only.

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


More information about the wp-trac mailing list