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_output HTML output. Default empty.
  • bool $has_data Whether this event has data. Always true for this filter since it is being called from the edit form.
  • object $data Event data object.
  • string $context Indicates 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' )

← All Hooks