rest_comment_query

rest_comment_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('rest_comment_query') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php line 275
    		 *
    		 * @param array           $prepared_args Array of arguments for WP_Comment_Query.
    		 * @param WP_REST_Request $request       The REST API request.
    		 */
    		$prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );
    
    		$query        = new WP_Comment_Query();
    		$query_result = $query->query( $prepared_args );
    
    		$comments = array();