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 |
---|---|
2353 | update_post_meta( $request_id, '_export_data_grouped', $groups ); |
2354 |
|
2355 | /** |
2356 | * Generate the export file from the collected, grouped personal data. |
2357 | * |
2358 | * @since 4.9.6 |
2359 | * |
2360 | * @param int $request_id The export request ID. |
2361 | */ |
2362 | do_action( 'wp_privacy_personal_data_export_file', $request_id ); |
2363 |
|
2364 | // Clear the grouped data now that it is no longer needed. |
2365 | delete_post_meta( $request_id, '_export_data_grouped' ); |
2366 |
|
2367 | // If the destination is email, send it now. |
2368 | if ( $send_as_email ) { |
2369 | $mail_success = wp_privacy_send_personal_data_export_email( $request_id ); |
2370 | if ( is_wp_error( $mail_success ) ) { |
2371 | wp_send_json_error( $mail_success->get_error_message() ); |