rest_{$this->post_type}_query

rest_{$this->post_type}_query

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

See hook in core

Displaying hooks found in version: wordpress-7.0

apply_filters('rest_{$this->post_type}_query') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 444
    		 *
    		 * @param array           $args    Array of arguments for WP_Query.
    		 * @param WP_REST_Request $request The REST API request.
    		 */
    		$args = apply_filters( "rest_{$this->post_type}_query", $args, $request );
    		if ( ! is_array( $args ) ) {
    			$args = array();
    		}
    		$query_args = $this->prepare_items_query( $args, $request );
    
    		$posts_query  = new WP_Query();