Adds a `woocommerce_shortcode_products_query_results` hook
This hook makes it easier to grab a shortcode's results (product IDs, pager data)
This commit is contained in:
parent
2d3db1d733
commit
e4e0755bbc
|
@ -593,7 +593,7 @@ class WC_Shortcode_Products {
|
|||
// Remove ordering query arguments which may have been added by get_catalog_ordering_args.
|
||||
WC()->query->remove_ordering_args();
|
||||
|
||||
return $results;
|
||||
return apply_filters( 'woocommerce_shortcode_products_query_results', $results );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue