wp_privacy_exports_url
Filter HookDescription
Filters the URL of 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 | 8349 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$exports_url
|
Exports directory URL. |
Usage Examples
Basic Usage
<?php
// Hook into wp_privacy_exports_url
add_filter('wp_privacy_exports_url', 'my_custom_filter', 10, 1);
function my_custom_filter($exports_url) {
// Your custom filtering logic here
return $exports_url;
}
Source Code Context
wp-includes/functions.php:8349
- How this hook is used in WordPress core
<?php
8344 * @since 5.5.0 Exports now use relative paths, so changes to the directory URL
8345 * via this filter should be reflected on the server.
8346 *
8347 * @param string $exports_url Exports directory URL.
8348 */
8349 return apply_filters( 'wp_privacy_exports_url', $exports_url );
8350 }
8351
8352 /**
8353 * Schedules a `WP_Cron` job to delete expired export files.
8354 *
PHP Documentation
<?php
/**
* 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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.