Core Function
View Source on Trac ↗ wp_create_user_request()
wp_create_user_request(
mixed $email_address = '',
mixed $action_name = '',
mixed $request_data = array(),
mixed $status = 'pending'
) Creates and logs a user request to perform a specific action.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $email_address User email address. This can be the address of a registered or non-registered user. Required |
| $action_name string | Name of the action that is being confirmed. Required. |
| array | $request_data Misc data you want to send with the verification request and pass to the actions once the request is confirmed. Required |
| $status string | Optional request status (pending or confirmed). Default 'pending'. |
Return Value
((int)
| WP_Error) Returns the request ID if successful, or a WP_Error object on failure.
Function Information
Since Version
4.9.6
Source File
wp-includes/user.php
Advertisement