[wp-trac] [WordPress Trac] #34442: How to target only the get_comments() query in comment_template()

WordPress Trac noreply at wordpress.org
Sun Oct 25 23:35:08 UTC 2015


#34442: How to target only the get_comments() query in comment_template()
-------------------------+------------------------------
 Reporter:  birgire      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  4.3.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by birgire):

 I just looked at the 4.4 trunk, and there seems to be few changes from
 4.3.1, so the suggestion B) above would be:

 {{{
     $comment_args = apply_filters( 'comment_template_query_args',
 $comment_args );

     $comment_query = new WP_Comment_Query( $comment_args );
 }}}

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


More information about the wp-trac mailing list