wp_logout

动作钩子


do_action( 'wp_logout', $user_id )
参数
  • (int)
    $user_id
    ID of the user that was logged out.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 665
引入
5.5.0
弃用

Fires after a user is logged out.

do_action( 'wp_logout', $user_id );