A WordPress-centric search engine for devs and theme authors



add_user_role ›

Since4.3.0
Deprecatedn/a
do_action( 'add_user_role', $this->ID, $role )
Parameters: (2)
  • (int) $user_id The user ID.
    Required: Yes
  • (string) $role The new role.
    Required: Yes
Defined at:
Codex:

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





Source

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