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

apply_filters('x_redirect_by') is found 1 times:

  • /wp-includes/pluggable.php line 1433
    		 * @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: