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:
John Blackbourn 2019-10-26 23:44:02 +00:00
parent 3559504161
commit e228178d1b

View File

@ -676,6 +676,13 @@ if ( ! function_exists( 'wp_validate_auth_cookie' ) ) :
$manager = WP_Session_Tokens::get_instance( $user->ID );
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 );
return false;
}