Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_privacy_personal_data_export_file

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2218      update_post_meta( $request_id, '_export_data_grouped', $groups );
2219
2220      /**
2221       * Generate the export file from the collected, grouped personal data.
2222       *
2223       * @since 4.9.6
2224       *
2225       * @param int $request_id The export request ID.
2226       */
2227      do_action( 'wp_privacy_personal_data_export_file', $request_id );
2228
2229      // Clear the grouped data now that it is no longer needed.
2230      delete_post_meta( $request_id, '_export_data_grouped' );
2231
2232      // If the destination is email, send it now.
2233      if ( $send_as_email ) {
2234           $mail_success = wp_privacy_send_personal_data_export_email( $request_id );
2235           if ( is_wp_error( $mail_success ) ) {
2236                wp_send_json_error( $mail_success->get_error_message() );