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
1199
1200      /**
1201       * Filter the redirect location.
1202       *
1203       * @since 2.1.0
1204       *
1205       * @param string $location The path to redirect to.
1206       * @param int    $status   Status code to use.
1207       */
1208      $location = apply_filters( 'wp_redirect', $location, $status );
1209
1210      /**
1211       * Filter the redirect status code.
1212       *
1213       * @since 2.3.0
1214       *
1215       * @param int    $status   Status code to use.
1216       * @param string $location The path to redirect to.
1217       */