Skip to content
Docs
Get RestroPress

Action

rpress_post_set_user_to_pending

Updated
On this page

Fires after a user is marked as pending verification.

Runs in rpress_set_user_to_pending() after update_user_meta() sets the _rpress_pending_verification meta. The second argument reports whether the meta update succeeded.

Parameters#

ParameterTypeDescription
$user_idintID of the user.
$update_successfulboolWhether the meta update succeeded.

Example#

function my_after_user_pending( $user_id, $update_successful ) {
	if ( $update_successful ) {
		do_action( 'my_send_verification_reminder', $user_id );
	}
}
add_action( 'rpress_post_set_user_to_pending', 'my_after_user_pending', 10, 2 );

Source#

Fired from:

  • includes/user-functions.php (line 574), in rpress_set_user_to_pending()

See also#

Was this page helpful?