secure_auth_redirect
Filters whether to use a secure authentication redirect.
Usage
add_filter( 'secure_auth_redirect', 'wp_kama_secure_auth_redirect_filter' ); /** * Function for `secure_auth_redirect` filter-hook. * * @param bool $secure Whether to use a secure authentication redirect. * * @return bool */ function wp_kama_secure_auth_redirect_filter( $secure ){ // filter... return $secure; }
- $secure(true|false)
- Whether to use a secure authentication redirect.
Default: false
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
wp-includes/pluggable.php 1190
$secure = apply_filters( 'secure_auth_redirect', $secure );