wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_privacy_exports_dir › WordPress Function

Since4.9.6
已弃用n/a
wp_privacy_exports_dir ( 没有参数 )
查看:
返回:
  • (string) Exports directory.
定义在:
文档:

Returns the directory used to store personal data export files.



源码

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 );
}