Function: wp_send_user_request

wp_send_user_request( string $request_id )

Send a confirmation request email to confirm an action.

If the request is not already pending, it will be updated.


Name Type(s) Default Value Description
$request_id string

ID of the request created via wp_create_user_request().


WP_Error | boolean

Will return true/false based on the success of sending the email, or a WP_Error object.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.