Skip to main content

Our last 50% Promotion - the Affiliate Theme will no longer be sold from 2022/01/01! Read more in our blog post!

With this filter you can adjust the query of the product-compare-shortcode. For example, it’s possible to adjust the number of results with this filter. Basically any command, which a WP-query is supporting, can be processed.

add_filter('at_set_product_compare_shortcode_query', 'at_set_product_compare_shortcode_posts_per_page', 11, 1);
function at_set_product_compare_shortcode_posts_per_page($args) {
	$args['posts_per_page'] = 100;
	return $args;

Was this article helpful?

1 Star2 Stars3 Stars4 Stars5 Stars
(No Ratings Yet)

Keine Kommentare vorhanden

You have a question or an opinion about this post? Share it with us!

Your email address will not be published. Required fields are marked *