WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
2586 | update_post_meta( $request_id, '_export_data_grouped', $groups ); |
2587 |
|
2588 | /** |
2589 | * Generate the export file from the collected, grouped personal data. |
2590 | * |
2591 | * @since 4.9.6 |
2592 | * |
2593 | * @param int $request_id The export request ID. |
2594 | */ |
2595 | do_action( 'wp_privacy_personal_data_export_file', $request_id ); |
2596 |
|
2597 | // Clear the grouped data now that it is no longer needed. |
2598 | delete_post_meta( $request_id, '_export_data_grouped' ); |
2599 |
|
2600 | // If the destination is email, send it now. |
2601 | if ( $send_as_email ) { |
2602 | $mail_success = wp_privacy_send_personal_data_export_email( $request_id ); |
2603 | if ( is_wp_error( $mail_success ) ) { |
2604 | wp_send_json_error( $mail_success->get_error_message() ); |