返回用于存储个人数据导出文件的目录的URL。

原型

wp_privacy_exports_url()

返回值

(string)  导出目录URL。

源文件

路径:wp-includes/functions.php

<?php
...
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 );
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wp_privacy_exports_url/