user_request_action_description
Filters the user action description.
Использование
add_filter( 'user_request_action_description', 'wp_kama_user_request_action_description_filter', 10, 2 );
/**
* Function for `user_request_action_description` filter-hook.
*
* @param string $description The default description.
* @param string $action_name The name of the request.
*
* @return string
*/
function wp_kama_user_request_action_description_filter( $description, $action_name ){
// filter...
return $description;
}
- $description(строка)
- The default description.
- $action_name(строка)
- The name of the request.
Список изменений
| С версии 4.9.6 | Введена. |
Где вызывается хук
user_request_action_description
wp-includes/user.php 4819
return apply_filters( 'user_request_action_description', $description, $action_name );