Skip to content

mc_setup_allowed_sites

github-actions[bot] edited this page Jun 9, 2026 · 5 revisions

Filter what sites are allowed CORS access.

Auto-generated Example

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

Parameters

  • array $allowed URLs permitted access. Default empty array.
  • string $origin HTTP origin passed.

Returns

array

Files

apply_filters( 'mc_setup_allowed_sites', array(), $origin )

← All Hooks

Clone this wiki locally