allowed_http_origins WordPress Filter Hook

The allowed_http_origins Wordpress hook allows you to specify which domains are allowed to access your Wordpress site. This is useful if you want to limit access to your site to only certain domains.

apply_filters( 'allowed_http_origins', string[] $allowed_origins ) #

Change the origin types allowed for HTTP requests.


Parameters

$allowed_origins

(string[])Array of default allowed HTTP origins.

  • (string) Non-secure URL for admin origin.
  • '1'
    (string) Secure URL for admin origin.
  • '2'
    (string) Non-secure URL for home origin.
  • '3'
    (string) Secure URL for home origin.


Top ↑

Source

File: wp-includes/http.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.