Action
rpress_post_set_user_to_pending
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#
| Parameter | Type | Description |
|---|---|---|
$user_id | int | ID of the user. |
$update_successful | bool | Whether 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), inrpress_set_user_to_pending()
See also#
Was this page helpful?
