auth_cookie_malformed
Fires if an authentication cookie is malformed.
Usage
add_action( 'auth_cookie_malformed', 'wp_kama_auth_cookie_malformed_action', 10, 2 );
/**
* Function for `auth_cookie_malformed` action-hook.
*
* @param string $cookie Malformed auth cookie.
* @param string $scheme Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'.
*
* @return void
*/
function wp_kama_auth_cookie_malformed_action( $cookie, $scheme ){
// action...
}
- $cookie(string)
- Malformed auth cookie.
- $scheme(string)
- Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'.
Changelog
| Since 2.7.0 | Introduced. |
Where the hook is called
auth_cookie_malformed
wp-includes/pluggable.php 790
do_action( 'auth_cookie_malformed', $cookie, $scheme );
Where the hook is used in WordPress
wp-includes/default-filters.php 333
add_action( 'auth_cookie_malformed', 'rest_cookie_collect_status' );