WordPress开发者和主题制作者的搜索引擎



remove_user_role ›

Since4.3.0
已弃用n/a
do_action( 'remove_user_role', $this->ID, $role )
参数: (2)
  • (int) $user_id The user ID.
    Required: Yes
  • (string) $role The removed role.
    Required: Yes
定义在:
文档:

Fires immediately after a role as been removed from a user.





源码

do_action( 'remove_user_role', $this->ID, $role );