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
1291
1292           /**
1293            * Filters the redirect HTTP response status code to use.
1294            *
1295            * @since 2.3.0
1296            *
1297            * @param int    $status   The HTTP response status code to use.
1298            * @param string $location The path or URL to redirect to.
1299            */
1300           $status = apply_filters( 'wp_redirect_status', $status, $location );
1301
1302           if ( ! $location ) {
1303                return false;
1304           }
1305
1306           if ( $status < 300 || 399 < $status ) {
1307                wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
1308           }
1309