Skip to content
Docs
Get RestroPress

Action

rpress_pre_set_user_to_pending

Updated
On this page

Fires before a user is marked as pending verification.

Runs in rpress_set_user_to_pending() after the user ID is checked and before the _rpress_pending_verification user meta is set.

Parameters#

ParameterTypeDescription
$user_idintID of the user being set to pending.

Example#

function my_before_user_pending( $user_id ) {
	error_log( 'Setting user to pending: ' . $user_id );
}
add_action( 'rpress_pre_set_user_to_pending', 'my_before_user_pending' );

Source#

Fired from:

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

See also#

Was this page helpful?