wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
get_http_origin › WordPress Function
Od3.4.0
Przestarzałyn/a
› get_http_origin ( Brak parametrów )
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Gets the HTTP Origin of the current request.
Powiązane Funkcje: get_allowed_http_origins, is_allowed_http_origin, get_the_author_login, get_plugins, get_to_ping
Źródło
function get_http_origin() {
$origin = '';
if ( ! empty( $_SERVER['HTTP_ORIGIN'] ) ) {
$origin = $_SERVER['HTTP_ORIGIN'];
}
/**
* Changes the origin of an HTTP request.
*
* @since 3.4.0
*
* @param string $origin The HTTP origin for the request.
*/
return apply_filters( 'http_origin', $origin );
}