Home/Hooks/allowed_redirect_hosts
FILTER

allowed_redirect_hosts

Filters the list of allowed hosts to redirect to.

wp-includes/pluggable.php
Line 1640
2 Parameters
View Source

Usage

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

Filter Callback:

function your_callback_function( array($wpp['host']), isset($lp['host']) ? $lp['host'] : '' ) {
    // Your code here
    return array($wpp['host']);
}

Parameters

array($wpp['host'])

Parameter 1

isset($lp['host']) ? $lp['host'] : ''

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.