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

In this article

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

Parameters

$user_idint
The user ID.
$rolestring
The new role.

Source

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

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.