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:
Matt Gibbs 2020-02-04 15:01:56 -05:00 committed by GitHub
parent 2d3db1d733
commit e4e0755bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**