There was an error while loading. Please reload this page.
Filter the CMB2 Field defaults.
add_filter( 'cmb2_field_defaults', function( array $defaults, string $id, string $type, CMB2_Field object ) { // Your code here. return $defaults; }, 10, 4 );
array
$defaults
string
$id
$type
CMB2_Field
object
apply_filters( 'cmb2_field_defaults', $defaults, $args['id'], $args['type'], $this )
← All Hooks