user_request_action_confirmed
Action HookDescription
Fires an action hook when the account action has been confirmed by the user. Using this you can assume the user has agreed to perform the action by clicking on the link in the confirmation email. After firing this action hook the page will redirect to wp-login a callback redirects or exits first.Hook Information
File Location |
wp-login.php
View on GitHub
|
Hook Type | Action |
Line Number | 1277 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$request_id
|
Request ID. |
Usage Examples
Basic Usage
<?php
// Hook into user_request_action_confirmed
add_action('user_request_action_confirmed', 'my_custom_function', 10, 1);
function my_custom_function($request_id) {
// Your custom code here
}
Source Code Context
wp-login.php:1277
- How this hook is used in WordPress core
<?php
1272 *
1273 * @since 4.9.6
1274 *
1275 * @param int $request_id Request ID.
1276 */
1277 do_action( 'user_request_action_confirmed', $request_id );
1278
1279 $message = _wp_privacy_account_request_confirmed_message( $request_id );
1280
1281 login_header( __( 'User action confirmed.' ), $message );
1282 login_footer();
PHP Documentation
<?php
/**
* Fires an action hook when the account action has been confirmed by the user.
*
* Using this you can assume the user has agreed to perform the action by
* clicking on the link in the confirmation email.
*
* After firing this action hook the page will redirect to wp-login a callback
* redirects or exits first.
*
* @since 4.9.6
*
* @param int $request_id Request ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-login.php
Related Hooks
Related hooks will be displayed here in future updates.