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
1383
1384           /**
1385            * Filters the redirect HTTP response status code to use.
1386            *
1387            * @since 2.3.0
1388            *
1389            * @param int    $status   The HTTP response status code to use.
1390            * @param string $location The path or URL to redirect to.
1391            */
1392           $status = apply_filters( 'wp_redirect_status', $status, $location );
1393
1394           if ( ! $location ) {
1395                return false;
1396           }
1397
1398           if ( $status < 300 || 399 < $status ) {
1399                wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
1400           }
1401