Action
rpress_pre_set_user_to_pending
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#
| Parameter | Type | Description |
|---|---|---|
$user_id | int | ID 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), inrpress_set_user_to_pending()
See also#
Was this page helpful?
