Skip to content
Get Bricks

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.

  • $groups (array): Array of condition groups. Each group has a name and label.
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;
} );