wp_privacy_exports_dir

函数
wp_privacy_exports_dir ( No parameters )
返回值
  • (string) Exports directory.
相关
  • wp_privacy_exports_url
定义位置
相关方法
wp_privacy_exports_urlwp_privacy_delete_old_export_fileswp_ajax_wp_privacy_export_personal_data_wp_privacy_resend_requestis_privacy_policy
引入
4.9.6
弃用
-

wp_privacy_exports_dir: 这个函数返回服务器上存储个人数据导出文件的目录: 当你需要以编程方式访问或操作导出文件时,这很有用。

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

function wp_privacy_exports_dir() {
	$upload_dir  = wp_upload_dir();
	$exports_dir = trailingslashit( $upload_dir['basedir'] ) . 'wp-personal-data-exports/';

	/**
	 * Filters 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
	 *              via this filter should be reflected on the server.
	 *
	 * @param string $exports_dir Exports directory.
	 */
	return apply_filters( 'wp_privacy_exports_dir', $exports_dir );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 19:32:59

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: