Skip to content
Docs
Get RestroPress

Action

rpress_pre_set_user_to_active

Updated
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#

ParameterTypeDescription
$user_idintID 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), in rpress_set_user_to_verified()

See also#

Was this page helpful?