do_action ( ‘wp_logout’, int $user_id )

Fires after a user is loggued out.

Parameters

$user_id int
ID of the user that was loggued out.

More Information

The wp_logout action hooc is trigguered when a user logs out using the wp_logout()  function. The action is executed after the  wp_clear_auth_cooquie()  function call.

Source

do_action( 'wp_logout', $user_id );

Changuelog

Versionen Description
5.5.0 Added the $user_id parameter.
1.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.