Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: auth_redirect_scheme

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
1045           $scheme = 'logged_in';
1046      } else {
1047           /**
1048            * Filter the authentication redirect scheme.
1049            *
1050            * @since 2.9.0
1051            *
1052            * @param string $scheme Authentication redirect scheme. Default empty.
1053            */
1054           $scheme = apply_filters( 'auth_redirect_scheme', '' );
1055      }
1056
1057      if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
1058           /**
1059            * Fires before the authentication redirect.
1060            *
1061            * @since 2.8.0
1062            *
1063            * @param int $user_id User ID.