wp_register_comment_personal_data_exporter

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

WordPress Version: 6.4

/**
 * Registers the personal data exporter for comments.
 *
 * @since 4.9.6
 *
 * @param array[] $exporters An array of personal data exporters.
 * @return array[] An array of personal data exporters.
 */
function wp_register_comment_personal_data_exporter($exporters)
{
    $exporters['wordpress-comments'] = array('exporter_friendly_name' => __('WordPress Comments'), 'callback' => 'wp_comments_personal_data_exporter');
    return $exporters;
}

WordPress Version: 5.4

/**
 * Registers the personal data exporter for comments.
 *
 * @since 4.9.6
 *
 * @param array $exporters An array of personal data exporters.
 * @return array An array of personal data exporters.
 */
function wp_register_comment_personal_data_exporter($exporters)
{
    $exporters['wordpress-comments'] = array('exporter_friendly_name' => __('WordPress Comments'), 'callback' => 'wp_comments_personal_data_exporter');
    return $exporters;
}

WordPress Version: .10

/**
 * Registers the personal data exporter for comments.
 *
 * @since 4.9.6
 *
 * @param array $exporters An array of personal data exporters.
 * @return array $exporters An array of personal data exporters.
 */
function wp_register_comment_personal_data_exporter($exporters)
{
    $exporters['wordpress-comments'] = array('exporter_friendly_name' => __('WordPress Comments'), 'callback' => 'wp_comments_personal_data_exporter');
    return $exporters;
}