woof_ext_custom_title_by_featured
Allows customization of the label text shown for the 'Featured products' filter checkbox in both the frontend view and the JavaScript localization array.
Parameters
$label (string) — The default translated label string, typically 'Featured products'
Source File
ext/by_featured/index.php:51
ext/by_featured/views/woof.php:7
Code Example
add_filter('woof_ext_custom_title_by_featured', function($label) {
$custom_label = __('Top Picks', 'my-theme');
return $custom_label;
});
Usage Notes
- Applied in two places: index.php sets js_lang_custom for JS front-end, views/woof.php sets the rendered $woof_ext_featured_label variable.
- The default value is the translation of 'Featured products'.
- Useful for white-labeling or customizing filter terminology per theme.