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 helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.