Skip to content
Docs
Get RestroPress

Action

rpress_post_set_user_to_active

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

ParameterTypeDescription
$user_idintID of the user.
$update_successfulboolWhether 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), in rpress_set_user_to_verified()

See also#

Was this page helpful?