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 |
---|---|
520 | * @since 4.9.6 |
521 | * @since 5.4.0 Added the `$json_report_pathname` parameter. |
522 | * |
523 | * @param string $archive_pathname The full path to the export file on the filesystem. |
524 | * @param string $archive_url The URL of the archive file. |
525 | * @param string $html_report_pathname The full path to the HTML personal data report on the filesystem. |
526 | * @param int $request_id The export request ID. |
527 | * @param string $json_report_pathname The full path to the JSON personal data report on the filesystem. |
528 | */ |
529 | do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname ); |
530 | } |
531 | } else { |
532 | $error = __( 'Unable to open export file (archive) for writing.' ); |
533 | } |
534 |
|
535 | // Remove the JSON file. |
536 | unlink( $json_report_pathname ); |
537 |
|
538 | // Remove the HTML file. |