wp_privacy_exports_url() WP 4.9.6
Returns the URL of the directory used to store personal data export files.
Хуки из функции
Возвращает
Строку. Exports directory URL.
Использование
wp_privacy_exports_url();
Заметки
- Смотрите: wp_privacy_exports_dir
Список изменений
С версии 4.9.6 | Введена. |
Код wp_privacy_exports_url() wp privacy exports url WP 5.6.2
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 );
}