Filter hook 'user_request_action_confirmed_message'

in WP Core File wp-includes/user.php at line 4679

View Source

user_request_action_confirmed_message

Filter Hook
Description
Filters the message displayed to a user when they confirm a data request.

Hook Information

File Location wp-includes/user.php View on GitHub
Hook Type Filter
Line Number 4679

Hook Parameters

Type Name Description
string $message The message to the user.
int $request_id The ID of the request being confirmed.

Usage Examples

Basic Usage
<?php
// Hook into user_request_action_confirmed_message
add_filter('user_request_action_confirmed_message', 'my_custom_filter', 10, 2);

function my_custom_filter($message, $request_id) {
    // Your custom filtering logic here
    return $message;
}

Source Code Context

wp-includes/user.php:4679 - How this hook is used in WordPress core
<?php
4674  	 * @since 4.9.6
4675  	 *
4676  	 * @param string $message    The message to the user.
4677  	 * @param int    $request_id The ID of the request being confirmed.
4678  	 */
4679  	$message = apply_filters( 'user_request_action_confirmed_message', $message, $request_id );
4680  
4681  	return $message;
4682  }
4683  
4684  /**

PHP Documentation

<?php
/**
	 * Filters the message displayed to a user when they confirm a data request.
	 *
	 * @since 4.9.6
	 *
	 * @param string $message    The message to the user.
	 * @param int    $request_id The ID of the request being confirmed.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.