add_user_role

最后更新于:2021-11-25 19:22:32

do_action( ‘add_user_role’, int $user_id, string $role )

Fires immediately after the user has been given a new role.

参数

$user_id

(int)
The user ID.

$role

(string)
The new role.

源文件

文件: gc-includes/class-gc-user.php

View on Trac