Action
rpress_post_set_user_to_active
On this page
Fires after a pending user is marked as verified.
Runs in rpress_set_user_to_verified() after delete_user_meta() removes the _rpress_pending_verification meta. The second argument reports whether the deletion succeeded.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$user_id | int | ID of the user. |
$update_successful | bool | Whether the pending meta was removed. |
Example#
function my_after_user_verified( $user_id, $update_successful ) {
if ( $update_successful ) {
update_user_meta( $user_id, 'my_verified_at', time() );
}
}
add_action( 'rpress_post_set_user_to_active', 'my_after_user_verified', 10, 2 );
Source#
Fired from:
includes/user-functions.php(line 593), inrpress_set_user_to_verified()
See also#
Was this page helpful?
