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