-
Notifications
You must be signed in to change notification settings - Fork 16
mc_controlled_field
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Filter whether a controllable location field has controlled values.
add_filter(
'mc_controlled_field',
function(
bool $return,
string $this_field,
array $controls
) {
// Your code here.
return $return;
},
10,
3
);-
bool$returnTrue if field has control data, false if not. -
string$this_fieldThe current field being checked. -
array$controlsThe array of saved data for controlled fields.
apply_filters( 'mc_controlled_field', $return, $this_field, $controls )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )