woof_ext_custom_title_stock_quantity
Allows customization of the label text shown for the 'Stock quantity slider' filter in both the admin filter titles list and the frontend view template.
Parameters
$label (string) — The default translated label string, typically 'Stock quantity slider' or 'Stock Quantity'
Source File
ext/stock_quantity/index.php:62
ext/stock_quantity/views/woof.php:107
Code Example
add_filter('woof_ext_custom_title_stock_quantity', function($label) {
return __('Inventory Level', 'my-theme');
});
Usage Notes
- Applied in two places: index.php in add_titles() method (hooked to woof_get_all_filter_titles), and views/woof.php for frontend display.
- The default value differs slightly between call sites: 'Stock quantity slider' vs 'Stock Quantity'.
- The result from index.php is additionally passed through WOOF_HELPER::wpml_translate().