[ad_1]
Hi @yankiara
You can use this code example, placing it in the functions.php file of your theme or using the code snippets plugin:
// Define a custom function to modify the default option text
function custom_dropdown_default_option($default_option, $filter) {
// Modify the default option text as needed
$modified_default_option = sprintf(__('My custom text: %s', 'filter-everything'), $filter['label']);
return $modified_default_option;
}
// Hook the custom function to the 'wpc_dropdown_default_option' filter
add_filter('wpc_dropdown_default_option', 'custom_dropdown_default_option', 10, 2);Change the “My custom text: ” to the needed text. The “%s” will show your attribute/taxonomy/custom field title name.
Best Regards – Victor
