wphooks.info - wp_logout

wp_logout

The hook occurs in the following file:

wp-includes/pluggable.php:
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
 */
function wp_logout() {
	wp_destroy_current_session();
	wp_clear_auth_cookie();

	/**
	 * Fires after a user is logged-out.
	 *
	 * @since 1.5.0
	 */
	do_action( 'wp_logout' );
}
endif;

if ( !function_exists('wp_validate_auth_cookie') ) :
/**
 * Validates authentication cookie.
 *
 * The checks include making sure that the authentication cookie is set and
 * pulling in the contents (if $cookie is not used).