Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_redirect

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
1144
1145      /**
1146       * Filter the redirect location.
1147       *
1148       * @since 2.1.0
1149       *
1150       * @param string $location The path to redirect to.
1151       * @param int    $status   Status code to use.
1152       */
1153      $location = apply_filters( 'wp_redirect', $location, $status );
1154
1155      /**
1156       * Filter the redirect status code.
1157       *
1158       * @since 2.3.0
1159       *
1160       * @param int    $status   Status code to use.
1161       * @param string $location The path to redirect to.
1162       */