Skip to content

mc_location_fields

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

Return custom fields for use in My Calendar locations. Fields should format like:

   'title'             => 'Location Type',
   'sanitize_callback' => 'sanitize_text_field',
   'display_callback'  => 'esc_html',
   'input_type'        => 'select',
   'input_values'      => array( 'Virtual', 'Private Home', 'Concert Hall', 'Outdoor Venue' ),
);```

## Auto-generated Example

```php
add_filter(
   'mc_location_fields',
    function( array $fields ) {
        // Your code here.
        return $fields;
    }
);

Parameters

  • array $fields Array of custom fields.

Returns

array

Files

apply_filters( 'mc_location_fields', $fields )

← All Hooks

Clone this wiki locally