woocommerce_shortcode_products_query хук-фильтр . WC 1.0
Tags.
Использование
add_filter( 'woocommerce_shortcode_products_query', 'filter_function_name_6714', 10, 3 ); function filter_function_name_6714( $query_args, $attributes, $type ){ // filter... return $query_args; }
- $query_args
- -
- $attributes
- -
- $type
- -
Где вызывается хук
woocommerce_shortcode_products_query
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 235
$query_args = apply_filters( 'woocommerce_shortcode_products_query', $query_args, $this->attributes, $this->type );
Где используется хук (в ядре WC)
includes/class-wc-template-loader.php 275
add_filter( 'woocommerce_shortcode_products_query', array( __CLASS__, 'unsupported_archive_layered_nav_compatibility' ) );
includes/class-wc-template-loader.php 277
remove_filter( 'woocommerce_shortcode_products_query', array( __CLASS__, 'unsupported_archive_layered_nav_compatibility' ) );