Skip to content

cmb2_non_repeatable_fields

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

Filter field types that are non-repeatable.

Note that this does not allow overriding the default non-repeatable types.

and not values. The value can be anything, because it is meaningless. Example: array( 'my_custom_field' => 1 )

Auto-generated Example

add_filter(
   'cmb2_non_repeatable_fields',
    function( array $fields ) {
        // Your code here.
        return $fields;
    }
);

Parameters

  • array $fields Array of fields designated as non-repeatable. Note that the field names are keys,

Files

apply_filters( 'cmb2_non_repeatable_fields', array() )

← All Hooks

Clone this wiki locally