woocommerce_shortcode_products_query

woocommerce_shortcode_products_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_shortcode_products_query') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-products.php line 237
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
        // Tags.
        $this->set_tags_query_args( $query_args );
     
        $query_args = apply_filters( 'woocommerce_shortcode_products_query', $query_args, $this->attributes, $this->type );
     
        // Always query only IDs.
        $query_args['fields'] = 'ids';
     
        return $query_args;
    }

See this hook used in plugins: