Skip to content

cmb2_field_arguments

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

Filter the CMB2 Field arguments after processing.

Auto-generated Example

add_filter(
   'cmb2_field_arguments',
    function(
        array $args,
        CMB2_Field object
    ) {
        // Your code here.
        return $args;
    },
    10,
    2
);

Parameters

  • array $args Metabox field config array after processing.
  • CMB2_Field object $field This field object.

Files

apply_filters( 'cmb2_field_arguments', $args, $this )

← All Hooks

Clone this wiki locally