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 |
---|---|
554 | * @since 4.9.6 |
555 | * @since 5.4.0 Added the `$json_report_pathname` parameter. |
556 | * |
557 | * @param string $archive_pathname The full path to the export file on the filesystem. |
558 | * @param string $archive_url The URL of the archive file. |
559 | * @param string $html_report_pathname The full path to the HTML personal data report on the filesystem. |
560 | * @param int $request_id The export request ID. |
561 | * @param string $json_report_pathname The full path to the JSON personal data report on the filesystem. |
562 | */ |
563 | do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname ); |
564 | } |
565 | } else { |
566 | $error = __( 'Unable to open personal data export file (archive) for writing.' ); |
567 | } |
568 |
|
569 | // Remove the JSON file. |
570 | unlink( $json_report_pathname ); |
571 |
|
572 | // Remove the HTML file. |