rest_{$this->post_type}_collection_params

rest_{$this->post_type}_collection_params

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 2954
    		 *
    		 * @param array        $query_params JSON Schema-formatted collection parameters.
    		 * @param WP_Post_Type $post_type    Post type object.
    		 */
    		return apply_filters( "rest_{$this->post_type}_collection_params", $query_params, $post_type );
    	}
    
    	/**
    	 * Sanitizes and validates the list of post statuses, including whether the
    	 * user can query private statuses.
    	 *