http_origin
Changes the origin of an HTTP request.
Usage
add_filter( 'http_origin', 'wp_kama_http_origin_filter' ); /** * Function for `http_origin` filter-hook. * * @param string $origin The original origin for the request. * * @return string */ function wp_kama_http_origin_filter( $origin ){ // filter... return $origin; }
- $origin(string)
- The original origin for the request.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
http_origin
wp-includes/http.php 433
return apply_filters( 'http_origin', $origin );