woocommerce_rest_{$this->post_type}_query

woocommerce_rest_{$this->post_type}_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

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

  • /includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php line 351
    		 *
    		 * @param array           $args    Key value array of query var to query value.
    		 * @param WP_REST_Request $request The request used.
    		 */
    		$args = apply_filters( "woocommerce_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 );
    
    		$posts = array();
    

See this hook used in plugins: