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.8.1

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
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    *
     * @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: