Skip to content

mc_api_key

Joe Dolson edited this page May 15, 2026 · 4 revisions

Filter to test access to the event API. Default 'true'.

Auto-generated Example

add_filter(
   'mc_api_key',
    function( {bool} $api_key ) {
        // Your code here.
        return $api_key;
    }
);

Parameters

  • {bool} $api_key Return true to allow access. Use filter to control or limit access.

Returns

{bool}

Files

apply_filters( 'mc_api_key', true )

← All Hooks

Clone this wiki locally