mc_event_registration - joedolson/my-calendar GitHub Wiki
Filter event registration fields.
Auto-generated Example
add_filter(
'mc_event_registration',
function(
string $event_registration_output,
bool $has_data,
object $data,
string $context
) {
// Your code here.
return $event_registration_output;
},
10,
4
);
Parameters
string$event_registration_outputHTML output. Default empty.bool$has_dataWhether this event has data. Always true for this filter since it is being called from the edit form.object$dataEvent data object.string$contextIndicates this is running in the admin.
Returns
string
Files
apply_filters( 'mc_event_registration', '', $has_data, $data, 'admin' )
apply_filters( 'mc_event_registration', '', true, $data, 'admin' )