Home/Hooks/allowed_http_origins
FILTER

allowed_http_origins

Changes the origin types allowed for HTTP requests. Array of default allowed HTTP origins. }

wp-includes/http.php
Line 464
1 Parameter
View Source

Usage

add_filter( 'allowed_http_origins', 'your_callback_function', 10, 1 );

Filter Callback:

function your_callback_function( $allowed_origins ) {
    // Your code here
    return $allowed_origins;
}

Parameters

$allowed_origins

Parameter 1

🔄 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.