Home/Hooks/allowed_http_origin
FILTER

allowed_http_origin

Changes the allowed HTTP origin result.

wp-includes/http.php
Line 494
2 Parameters
View Source

Usage

add_filter( 'allowed_http_origin', 'your_callback_function', 10, 2 );

Filter Callback:

function your_callback_function( $origin, $origin_arg ) {
    // Your code here
    return $origin;
}

Parameters

$origin

Parameter 1

$origin_arg

Parameter 2

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.