mc_api_key - joedolson/my-calendar GitHub Wiki

Filter to control access to the event API. Default 'true'. API key can be defined in settings, or handled via alternate means.

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