Skip to main content

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

add_filter('at_set_filter_customfield_first_label', 'at_set_color_first_value', 11, 3);
function at_set_color_first_value($value, $name, $label) {
	if($label == 'Farbe') {
		$value = __('Choose color', '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 *

*
*