On this page
wp_privacy_exports_url(): string
Returns the URL of the directory used to store personal data export files.
Description
See also
Return
string Exports directory URL.
Source
File: wp-includes/functions.php. View all references
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
* @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.
*/
return apply_filters( 'wp_privacy_exports_url', $exports_url );
}
Hooks
- apply_filters( 'wp_privacy_exports_url',
string $exports_url ) -
Filters the URL of the directory used to store personal data export files.
Related
Uses
| Uses | Description |
|---|---|
| wp_upload_dir() wp-includes/functions.php | Returns an array containing the current upload directory’s path and URL. |
| trailingslashit() wp-includes/formatting.php | Appends a trailing slash. |
| apply_filters() wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used By
| Used By | Description |
|---|---|
| wp_privacy_process_personal_data_export_page() wp-admin/includes/privacy-tools.php | Intercept personal data exporter page Ajax responses in order to assemble the personal data export file. |
| wp_privacy_generate_personal_data_export_file() wp-admin/includes/privacy-tools.php | Generate the personal data export file. |
| wp_privacy_send_personal_data_export_email() wp-admin/includes/privacy-tools.php | Send an email to the user with a link to the personal data export file |
Changelog
| Version | Description |
|---|---|
| 4.9.6 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_privacy_exports_url