Docs: Add missing docs for the auth_cookie_bad_session_token
action.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3559504161
commit
e228178d1b
@ -676,6 +676,13 @@ if ( ! function_exists( 'wp_validate_auth_cookie' ) ) :
|
|||||||
|
|
||||||
$manager = WP_Session_Tokens::get_instance( $user->ID );
|
$manager = WP_Session_Tokens::get_instance( $user->ID );
|
||||||
if ( ! $manager->verify( $token ) ) {
|
if ( ! $manager->verify( $token ) ) {
|
||||||
|
/**
|
||||||
|
* Fires if a bad session token is encountered.
|
||||||
|
*
|
||||||
|
* @since 4.0.0
|
||||||
|
*
|
||||||
|
* @param string[] $cookie_elements An array of data for the authentication cookie.
|
||||||
|
*/
|
||||||
do_action( 'auth_cookie_bad_session_token', $cookie_elements );
|
do_action( 'auth_cookie_bad_session_token', $cookie_elements );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user