Title: http_origin
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘http_origin’, string $origin )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#wp--skip-link--target)

Changes the origin of an HTTP request.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#parameters)󠁿

 `$origin`string

The HTTP origin for the request.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'http_origin', $origin );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/http.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/http.php#L442)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/http.php#L442-L442)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#related)󠁿

| Used by | Description | 
| [get_http_origin()](https://developer.wordpress.org/reference/functions/get_http_origin/)`wp-includes/http.php` |

Gets the HTTP Origin of the current request.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/http_origin/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fhttp_origin%2F)
before being able to contribute a note or feedback.