auth_cookie_valid action-hook . WP 2.7.0
Fires once an authentication cookie has been validated.
Usage
add_action( 'auth_cookie_valid', 'action_function_name_7139', 10, 2 ); function action_function_name_7139( $cookie_elements, $user ){ // action... }
- $cookie_elements(string[])
- An array of data for the authentication cookie.
- $user(WP_User)
- User object.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
auth_cookie_valid
wp-includes/pluggable.php 722
do_action( 'auth_cookie_valid', $cookie_elements, $user );
Where in WP core the hook is used WordPress
wp-includes/pluggable.php 278
add_action( 'auth_cookie_valid', 'rest_cookie_collect_status' );