Filter: bricks/conditions/groups
Filters the condition groups available in the element conditions interface. This allows you to add new categories for your custom conditions.
Parameters
Section titled “Parameters”$groups(array): Array of condition groups. Each group has anameandlabel.
Example usage
Section titled “Example usage”add_filter( 'bricks/conditions/groups', function( $groups ) { // Add a custom condition group $groups[] = [ 'name' => 'my_custom_group', 'label' => esc_html__( 'My Custom Group', 'my-plugin' ), ];
return $groups;} );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.