Skip to content
Get Bricks

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.

  • $name (string): The theme style name.
  • $theme_style (array): The theme style data array.
add_filter( 'bricks/theme_style_name', function( $name, $theme_style ) {
// Example: Prefix theme style file names
return 'custom-prefix-' . $name;
}, 10, 2 );