Skip to main content

With this filter it’s possible to customize the first option in a taxonomy-field. Possible would be, for example, choose brand.

The additional parameter $tax returns as object the current taxonomy.

add_filter('at_set_filter_taxonomy_first_label', 'at_set_taxonomie_first_value', 11, 2);
function at_set_taxonomie_first_value($value, $tax) {
	if($tax->name == 'Brand') {
		$value = __('Choose Brand', 'affiliatetheme');
	}
	
	return $value;
}

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 *

*
*