Filter: bricks/theme_styles/controls
Filter: bricks/theme_styles/controls
Section titled “Filter: bricks/theme_styles/controls”Filters the individual controls available within the Theme Styles settings. This allows you to add custom fields to existing Theme Style groups or to your own custom groups.
Parameters
Section titled “Parameters”$controls(array): Associative array of controls.
Example usage
Section titled “Example usage”add_filter( 'bricks/theme_styles/controls', function( $controls ) { // Add a custom color control to the 'colors' group $controls['myCustomColor'] = [ 'group' => 'colors', // Target existing group 'label' => esc_html__( 'My Custom Color', 'my-plugin' ), 'type' => 'color', ];
return $controls;} ); Was this page helpful?