Skip to content

cmb2_group_wrap_attributes

github-actions[bot] edited this page Jun 25, 2026 · 1 revision

Allow for adding additional HTML attributes to a group wrapper.

The attributes will be an array of key => value pairs for each attribute.

Auto-generated Example

add_filter(
   'cmb2_group_wrap_attributes',
    function(
        string $group_wrap_attributes,
        CMB2_Field $field_group
    ) {
        // Your code here.
        return $group_wrap_attributes;
    },
    10,
    2
);

Parameters

  • string $group_wrap_attributes Current attributes array.
  • CMB2_Field $field_group The group CMB2_Field object.

Files

apply_filters( 'cmb2_group_wrap_attributes', $group_wrap_attributes, $field_group )

← All Hooks

Clone this wiki locally