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 |
---|---|
532 | * @since 4.9.6 |
533 | * @since 5.4.0 Added the `$json_report_pathname` parameter. |
534 | * |
535 | * @param string $archive_pathname The full path to the export file on the filesystem. |
536 | * @param string $archive_url The URL of the archive file. |
537 | * @param string $html_report_pathname The full path to the HTML personal data report on the filesystem. |
538 | * @param int $request_id The export request ID. |
539 | * @param string $json_report_pathname The full path to the JSON personal data report on the filesystem. |
540 | */ |
541 | do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname ); |
542 | } |
543 | } else { |
544 | $error = __( 'Unable to open personal data export file (archive) for writing.' ); |
545 | } |
546 |
|
547 | // Remove the JSON file. |
548 | unlink( $json_report_pathname ); |
549 |
|
550 | // Remove the HTML file. |