wp_privacy_personal_data_export_file
Action HookDescription
Generate the export file from the collected, grouped personal data.Hook Information
File Location |
wp-admin/includes/privacy-tools.php
View on GitHub
|
Hook Type | Action |
Line Number | 864 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$request_id
|
The export request ID. |
Usage Examples
Basic Usage
<?php
// Hook into wp_privacy_personal_data_export_file
add_action('wp_privacy_personal_data_export_file', 'my_custom_function', 10, 1);
function my_custom_function($request_id) {
// Your custom code here
}
Source Code Context
wp-admin/includes/privacy-tools.php:864
- How this hook is used in WordPress core
<?php
859 *
860 * @since 4.9.6
861 *
862 * @param int $request_id The export request ID.
863 */
864 do_action( 'wp_privacy_personal_data_export_file', $request_id );
865
866 // Clear the grouped data now that it is no longer needed.
867 delete_post_meta( $request_id, '_export_data_grouped' );
868
869 // If the destination is email, send it now.
PHP Documentation
<?php
/**
* Generate the export file from the collected, grouped personal data.
*
* @since 4.9.6
*
* @param int $request_id The export request ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/includes/privacy-tools.php
Related Hooks
Related hooks will be displayed here in future updates.