Filter: bricks/theme_style_name
Filter: bricks/theme_style_name
Section titled “Filter: bricks/theme_style_name”Filters the name of the Theme Style used when generating the CSS file name. This allows you to sanitize or modify the name before it is used in the file system.
Parameters
Section titled “Parameters”$name(string): The theme style name.$theme_style(array): The theme style data array.
Example usage
Section titled “Example usage”add_filter( 'bricks/theme_style_name', function( $name, $theme_style ) { // Example: Prefix theme style file names return 'custom-prefix-' . $name;}, 10, 2 ); Was this page helpful?