wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
get_http_origin › WordPress Function
Depuis3.4.0
Dépréciéen/a
› get_http_origin ( Pas de paramètres )
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Get the HTTP Origin of the current request.
Fonctions en relation: get_allowed_http_origins, is_allowed_http_origin, get_the_author_login, get_plugins, get_to_ping
Source
function get_http_origin() { $origin = ''; if ( ! empty( $_SERVER['HTTP_ORIGIN'] ) ) { $origin = $_SERVER['HTTP_ORIGIN']; } /** * Change the origin of an HTTP request. * * @since 3.4.0 * * @param string $origin The original origin for the request. */ return apply_filters( 'http_origin', $origin ); }