Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_redirect_status

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1378
1379           /**
1380            * Filters the redirect HTTP response status code to use.
1381            *
1382            * @since 2.3.0
1383            *
1384            * @param int    $status   The HTTP response status code to use.
1385            * @param string $location The path or URL to redirect to.
1386            */
1387           $status = apply_filters( 'wp_redirect_status', $status, $location );
1388
1389           if ( ! $location ) {
1390                return false;
1391           }
1392
1393           if ( $status < 300 || 399 < $status ) {
1394                wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
1395           }
1396