Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-comment-query.php

comments_pre_query

Filter Hook: Filters the comments data before the query takes place.

Source: wp-includes/class-wp-comment-query.php:434

Used by 1 function | Uses 0 functions

WP_Comment_Query::set_found_comments()

Method: Populates found_comments and max_num_pages properties for the current query if the limit clause was used.

Source: wp-includes/class-wp-comment-query.php:990

Used by 1 function | Uses 2 functions

parse_comment_query

Action Hook: Fires after the comment query vars have been parsed.

Source: wp-includes/class-wp-comment-query.php:348

Used by 1 function | Uses 0 functions

found_comments_query

Filter Hook: Filters the query used to retrieve found comment count.

Source: wp-includes/class-wp-comment-query.php:1002

Used by 1 function | Uses 0 functions

WP_Comment_Query::get_comment_ids()

Method: Used internally to get a list of comment IDs matching the query vars.

Source: wp-includes/class-wp-comment-query.php:540

Used by 1 function | Uses 12 functions

WP_Comment_Query::fill_descendants()

Method: Fetch descendants for located comments.

Source: wp-includes/class-wp-comment-query.php:1021

Used by 1 function | Uses 8 functions

WP_Comment_Query::parse_order()

Method: Parse an ‘order’ query variable and cast it to ASC or DESC as necessary.

Source: wp-includes/class-wp-comment-query.php:1224

Used by 1 function | Uses 0 functions

WP_Comment_Query::get_comments()

Method: Get a list of comments matching the query vars.

Source: wp-includes/class-wp-comment-query.php:378

Used by 1 function | Uses 14 functions

WP_Comment_Query::parse_orderby()

Method: Parse and sanitize ‘orderby’ keys passed to the comment query.

Source: wp-includes/class-wp-comment-query.php:1163

Used by 1 function | Uses 1 function

WP_Comment_Query::__construct()

Method: Constructor.

Source: wp-includes/class-wp-comment-query.php:273

Used by 6 functions | Uses 1 function

WP_Comment_Query::parse_query()

Method: Parse arguments passed to the comment query with default query parameters.

Source: wp-includes/class-wp-comment-query.php:334

Used by 1 function | Uses 2 functions

WP_Comment_Query::__call()

Method: Make private/protected methods readable for backward compatibility.

Source: wp-includes/class-wp-comment-query.php:126

Used by 0 functions | Uses 1 function

WP_Comment_Query

Class: Core class used for querying comments.

Source: wp-includes/class-wp-comment-query.php:18

Used by 0 functions | Uses 0 functions

WP_Comment_Query::query()

Method: Sets up the WordPress query for retrieving comments.

Source: wp-includes/class-wp-comment-query.php:364

Used by 1 function | Uses 2 functions

pre_get_comments

Action Hook: Fires before comments are retrieved.

Source: wp-includes/class-wp-comment-query.php:394

Used by 1 function | Uses 0 functions

comments_clauses

Filter Hook: Filters the comment query clauses.

Source: wp-includes/class-wp-comment-query.php:931

Used by 1 function | Uses 0 functions

the_comments

Filter Hook: Filters the comment query results.

Source: wp-includes/class-wp-comment-query.php:518

Used by 1 function | Uses 0 functions

WP_Comment_Query::get_search_sql()

Method: Used internally to generate an SQL string for searching across multiple columns.

Source: wp-includes/class-wp-comment-query.php:1140

Used by 2 functions | Uses 2 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry