Changeset 47553
- Timestamp:
- 04/07/2020 04:12:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r47550 r47553 574 574 */ 575 575 function wp_logout() { 576 $user_id = get_current_user_id(); 577 576 578 wp_destroy_current_session(); 577 579 wp_clear_auth_cookie(); … … 579 581 580 582 /** 581 * Fires after a user is logged -out.583 * Fires after a user is logged out. 582 584 * 583 585 * @since 1.5.0 584 */ 585 do_action( 'wp_logout' ); 586 * @since 5.5.0 Added the `$user_id` parameter. 587 * 588 * @param int $user_id ID of the user that was logged out. 589 */ 590 do_action( 'wp_logout', $user_id ); 586 591 } 587 592 endif;
Note: See TracChangeset
for help on using the changeset viewer.