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
Hi,
Awesome, this is perfect!
Is there a list of all hooks somewhere in documentation?
Thanks for your great support!
Yan
Hi @yankiara
There are some hooks here – https://filtereverything.pro/resources/hooks/
The documentation is still under development, we haven’t gotten around to adding all of them with examples. Also, since there are quite a few new ones to be implemented in the plugin, and this process is still in progress, we are collecting all the information on how to implement them most conveniently to add the ability to change almost every aspect of the plugin’s functionality in one way or another.
Best Regards – Victor
Yes I’ve seen this page, thanks.
And good luck with documentation!