Action
rpress_pre_set_user_to_active
On this page
Fires before a pending user is marked as verified.
Runs in rpress_set_user_to_verified() after confirming the user is still pending and before the _rpress_pending_verification meta is deleted. The hook name uses the older wording 'active'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$user_id | int | ID of the user being verified. |
Example#
function my_before_user_verified( $user_id ) {
error_log( 'Verifying user: ' . $user_id );
}
add_action( 'rpress_pre_set_user_to_active', 'my_before_user_verified' );
Source#
Fired from:
includes/user-functions.php(line 591), inrpress_set_user_to_verified()
See also#
Was this page helpful?
