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 |
---|---|
823 | update_post_meta( $request_id, '_export_data_grouped', $groups ); |
824 |
|
825 | /** |
826 | * Generate the export file from the collected, grouped personal data. |
827 | * |
828 | * @since 4.9.6 |
829 | * |
830 | * @param int $request_id The export request ID. |
831 | */ |
832 | do_action( 'wp_privacy_personal_data_export_file', $request_id ); |
833 |
|
834 | // Clear the grouped data now that it is no longer needed. |
835 | delete_post_meta( $request_id, '_export_data_grouped' ); |
836 |
|
837 | // If the destination is email, send it now. |
838 | if ( $send_as_email ) { |
839 | $mail_success = wp_privacy_send_personal_data_export_email( $request_id ); |
840 | if ( is_wp_error( $mail_success ) ) { |
841 | wp_send_json_error( $mail_success->get_error_message() ); |