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!

We automatically calculate the min. and max. value of a field in the filter. If you want to overwrite these values, you can use this filter.

In this example we adjust the values of the price-field. You can execute all number-type-fields.

add_filter('at_set_min_max_value', 'at_change_min_max_value', 11, 3);
function at_change_min_max_value($values, $key, $posttype) {
	if($key == 'price') {
		$values[0]->min = 25;
		$values[0]->max = 500;
	return $values;

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 *