x_redirect_by

x_redirect_by

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('x_redirect_by') is found 1 times:

  • /wp-includes/pluggable.php line 1433
    1429
    1430
    1431
    1432
    1433
    1434
    1435
    1436
    1437
    1438
    * @param string|false $x_redirect_by The application doing the redirect or false to omit the header.
     * @param int          $status        Status code to use.
     * @param string       $location      The path to redirect to.
     */
    $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
    if ( is_string( $x_redirect_by ) ) {
        header( "X-Redirect-By: $x_redirect_by" );
    }
     
    header( "Location: $location", true, $status );

See this hook used in plugins: