Filter hook 'wp_privacy_exports_dir'

in WP Core File wp-includes/functions.php at line 8324

View Source

wp_privacy_exports_dir

Filter Hook
Description
Filters the directory used to store personal data export files. via this filter should be reflected on the server.

Hook Information

File Location wp-includes/functions.php View on GitHub
Hook Type Filter
Line Number 8324

Hook Parameters

Type Name Description
string $exports_dir Exports directory.

Usage Examples

Basic Usage
<?php
// Hook into wp_privacy_exports_dir
add_filter('wp_privacy_exports_dir', 'my_custom_filter', 10, 1);

function my_custom_filter($exports_dir) {
    // Your custom filtering logic here
    return $exports_dir;
}

Source Code Context

wp-includes/functions.php:8324 - How this hook is used in WordPress core
<?php
8319  	 * @since 5.5.0 Exports now use relative paths, so changes to the directory
8320  	 *              via this filter should be reflected on the server.
8321  	 *
8322  	 * @param string $exports_dir Exports directory.
8323  	 */
8324  	return apply_filters( 'wp_privacy_exports_dir', $exports_dir );
8325  }
8326  
8327  /**
8328   * Returns the URL of the directory used to store personal data export files.
8329   *

PHP Documentation

<?php
/**
	 * 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.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/functions.php
Related Hooks

Related hooks will be displayed here in future updates.