-
Notifications
You must be signed in to change notification settings - Fork 16
mc_location_controller
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Filter the string of <option> elements inside the <select> input used for a controlled location field.
add_filter(
'mc_location_controller',
function(
string $option,
string $fieldname,
string $selected,
string $context
) {
// Your code here.
return $option;
},
10,
4
);-
string$optionAn HTML string of elements to go inside the generated select field. -
string$fieldnameThe field being generated. -
string$selectedThe selected value for this location. -
string$contextWhether this is being edited in a location or an event context.
apply_filters( 'mc_location_controller', $options, $fieldname, $selected, $context )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 )