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 |
---|---|
858 | update_post_meta( $request_id, '_export_data_grouped', $groups ); |
859 |
|
860 | /** |
861 | * Generate the export file from the collected, grouped personal data. |
862 | * |
863 | * @since 4.9.6 |
864 | * |
865 | * @param int $request_id The export request ID. |
866 | */ |
867 | do_action( 'wp_privacy_personal_data_export_file', $request_id ); |
868 |
|
869 | // Clear the grouped data now that it is no longer needed. |
870 | delete_post_meta( $request_id, '_export_data_grouped' ); |
871 |
|
872 | // If the destination is email, send it now. |
873 | if ( $send_as_email ) { |
874 | $mail_success = wp_privacy_send_personal_data_export_email( $request_id ); |
875 | if ( is_wp_error( $mail_success ) ) { |
876 | wp_send_json_error( $mail_success->get_error_message() ); |