wp_privacy_exports_url

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

WordPress Version: 5.6

/**
 * Returns the URL of the directory used to store personal data export files.
 *
 * @since 4.9.6
 *
 * @see wp_privacy_exports_dir
 *
 * @return string Exports directory URL.
 */
function wp_privacy_exports_url()
{
    $upload_dir = wp_upload_dir();
    $exports_url = trailingslashit($upload_dir['baseurl']) . 'wp-personal-data-exports/';
    /**
     * Filters the URL of the directory used to store personal data export files.
     *
     * @since 4.9.6
     * @since 5.5.0 Exports now use relative paths, so changes to the directory URL
     *              via this filter should be reflected on the server.
     *
     * @param string $exports_url Exports directory URL.
     */
    return apply_filters('wp_privacy_exports_url', $exports_url);
}

WordPress Version: .10

/**
 * Returns the URL of the directory used to store personal data export files.
 *
 * @since 4.9.6
 *
 * @see wp_privacy_exports_dir
 *
 * @return string Exports directory URL.
 */
function wp_privacy_exports_url()
{
    $upload_dir = wp_upload_dir();
    $exports_url = trailingslashit($upload_dir['baseurl']) . 'wp-personal-data-exports/';
    /**
     * Filters the URL of the directory used to store personal data export files.
     *
     * @since 4.9.6
     *
     * @param string $exports_url Exports directory URL.
     */
    return apply_filters('wp_privacy_exports_url', $exports_url);
}