There was an error while loading. Please reload this page.
Allow for adding additional HTML attributes to a group wrapper.
The attributes will be an array of key => value pairs for each attribute.
add_filter( 'cmb2_group_wrap_attributes', function( string $group_wrap_attributes, CMB2_Field $field_group ) { // Your code here. return $group_wrap_attributes; }, 10, 2 );
string
$group_wrap_attributes
CMB2_Field
$field_group
apply_filters( 'cmb2_group_wrap_attributes', $group_wrap_attributes, $field_group )
← All Hooks