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-6.7

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

  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 426
    		 *
    		 * @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 );
    		$query_args = $this->prepare_items_query( $args, $request );
    
    		$posts_query  = new WP_Query();
    		$query_result = $posts_query->query( $query_args );
    
    		// Allow access to all password protected posts if the context is edit.