wp_user_request_action_description

The timeline below displays how wordpress function wp_user_request_action_description has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Gets action description from the name and return a string.
 *
 * @since 4.9.6
 *
 * @param string $action_name Action name of the request.
 * @return string Human readable action name.
 */
function wp_user_request_action_description($action_name)
{
    switch ($action_name) {
        case 'export_personal_data':
            $description = __('Export Personal Data');
            break;
        case 'remove_personal_data':
            $description = __('Erase Personal Data');
            break;
        default:
            /* translators: %s: Action name. */
            $description = sprintf(__('Confirm the "%s" action'), $action_name);
            break;
    }
    /**
     * Filters the user action description.
     *
     * @since 4.9.6
     *
     * @param string $description The default description.
     * @param string $action_name The name of the request.
     */
    return apply_filters('user_request_action_description', $description, $action_name);
}

WordPress Version: 5.3

/**
 * Get action description from the name and return a string.
 *
 * @since 4.9.6
 *
 * @param string $action_name Action name of the request.
 * @return string Human readable action name.
 */
function wp_user_request_action_description($action_name)
{
    switch ($action_name) {
        case 'export_personal_data':
            $description = __('Export Personal Data');
            break;
        case 'remove_personal_data':
            $description = __('Erase Personal Data');
            break;
        default:
            /* translators: %s: Action name. */
            $description = sprintf(__('Confirm the "%s" action'), $action_name);
            break;
    }
    /**
     * Filters the user action description.
     *
     * @since 4.9.6
     *
     * @param string $description The default description.
     * @param string $action_name The name of the request.
     */
    return apply_filters('user_request_action_description', $description, $action_name);
}

WordPress Version: .10

/**
 * Get action description from the name and return a string.
 *
 * @since 4.9.6
 *
 * @param string $action_name Action name of the request.
 * @return string Human readable action name.
 */
function wp_user_request_action_description($action_name)
{
    switch ($action_name) {
        case 'export_personal_data':
            $description = __('Export Personal Data');
            break;
        case 'remove_personal_data':
            $description = __('Erase Personal Data');
            break;
        default:
            /* translators: %s: action name */
            $description = sprintf(__('Confirm the "%s" action'), $action_name);
            break;
    }
    /**
     * Filters the user action description.
     *
     * @since 4.9.6
     *
     * @param string $description The default description.
     * @param string $action_name The name of the request.
     */
    return apply_filters('user_request_action_description', $description, $action_name);
}