woocommerce_blocks_product_grid_is_cacheable filter-hook . WC 1.0
Run the query and return an array of product IDs
Usage
add_filter( 'woocommerce_blocks_product_grid_is_cacheable', 'filter_function_name_2511', 10, 2 ); function filter_function_name_2511( $true, $query_args ){ // filter... return $true; }
- $true
- -
- $query_args
- -
Where the hook is called
woocommerce_blocks_product_grid_is_cacheable
woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php 256
$is_cacheable = (bool) apply_filters( 'woocommerce_blocks_product_grid_is_cacheable', true, $this->query_args );