Skip to content

mc_order_location_fields

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

Filter available custom fields & set display order.

Auto-generated Example

add_filter(
   'mc_order_location_fields',
    function(
        array $fields,
        string
    ) {
        // Your code here.
        return $fields;
    },
    10,
    2
);

Parameters

  • array $fields Array of custom fields data.
  • string $context Whether we're currently editing a location or an event. Other variable names: $context

Returns

array

Files

apply_filters( 'mc_order_location_fields', $fields, $context )

← All Hooks

Clone this wiki locally