wphooks.info - comments_list_table_query_args

comments_list_table_query_args

(trunk - 5.0-alpha-42993)

*** New in trunk ***

The hook occurs in the following file:

wp-admin/includes/class-wp-comments-list-table.php:
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
			'post_type' => $post_type,
		);

		/**
		 * Filters the arguments for the comment query in the comments list table.
		 *
		 * @since 5.0.0
		 *
		 * @param array $args An array of get_comments() arguments.
		 */
		$args = apply_filters( 'comments_list_table_query_args', $args );

		$_comments = get_comments( $args );
		if ( is_array( $_comments ) ) {
			update_comment_cache( $_comments );

			$this->items       = array_slice( $_comments, 0, $comments_per_page );
			$this->extra_items = array_slice( $_comments, $comments_per_page );

			$_comment_post_ids = array_unique( wp_list_pluck( $_comments, 'comment_post_ID' ) );