auth_redirect_scheme
Filters the authentication redirect scheme.
Description
Parameters (1)
- 0. $var (string) =>
''
- Authentication redirect scheme. Default empty.
Usage
- To run the hook, copy the example below.
- $var = apply_filters( 'auth_redirect_scheme', $var );
- if ( !empty( $var ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the auth_redirect_scheme callback
- function filter_auth_redirect_scheme( $var ) {
- // make filter magic happen here...
- return $var;
- };
- // add the filter
- add_filter( 'auth_redirect_scheme', 'filter_auth_redirect_scheme', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'auth_redirect_scheme', 'filter_auth_redirect_scheme', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/pluggable.php
- $scheme = apply_filters( 'auth_redirect_scheme', '' );