Skip to content

mc_controlled_field

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter whether a controllable location field has controlled values.

Auto-generated Example

add_filter(
   'mc_controlled_field',
    function(
        bool $return,
        string $this_field,
        array $controls
    ) {
        // Your code here.
        return $return;
    },
    10,
    3
);

Parameters

  • bool $return True if field has control data, false if not.
  • string $this_field The current field being checked.
  • array $controls The array of saved data for controlled fields.

Files

apply_filters( 'mc_controlled_field', $return, $this_field, $controls )

← All Hooks

Clone this wiki locally