[wp-trac] [WordPress Trac] #15019: Filters / Actions for get_comments

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 3 06:18:51 UTC 2010


#15019: Filters / Actions for get_comments
-------------------------+--------------------------------------------------
 Reporter:  sc0ttkclark  |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:  3.1            
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------
 Currently in 3.1 (trunk) get_comments() has no filters or actions. I'd
 like to improve this by adding them following the same format as get_posts
 >> WP_Query::query uses. As you can see in my patch, it's very minimal,
 not too much going on here besides these main things:

 1. New action pre_get_comments to run similar to WP_Query::query
 pre_get_posts

 2. New filters / action for specific $post_where, $orderby, $oder, $limit
 (and some cache-enablers)

 3. New filter the_comments to modify what's returned in $comments similar
 to WP_Query::query the_posts

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15019>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list