Filter: bricks/woocommerce/products_filters/options
Allows you to modify the options available in the WooCommerce Products Filter element.
Parameters
Section titled “Parameters”$options(array): An array of options, where each option is an associative array withidandname.$settings(array): The element settings.
Example usage
Section titled “Example usage”add_filter( 'bricks/woocommerce/products_filters/options', function( $options, $settings ) { // Add a custom "All" option to the beginning array_unshift( $options, [ 'id' => 'all', 'name' => 'All Products', ] );
return $options;}, 10, 2 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.