wp_privacy_personal_data_export_file_created

ACTION wp-admin\includes\privacy-tools.php (ligne 563) github
Fires right after all personal data has been written to the export file.

Paramètres

Entrée :
$archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname
Sortie :
@param string $archive_pathname     The full path to the export file on the filesystem.
@param string $archive_url          The URL of the archive file.
@param string $html_report_pathname The full path to the HTML personal data report on the filesystem.
@param int    $request_id           The export request ID.
@param string $json_report_pathname The full path to the JSON personal data report on the filesystem.

Utilisation

// Ajouter une fonction au hook action 'wp_privacy_personal_data_export_file_created'
add_action('wp_privacy_personal_data_export_file_created', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname) {
    // Votre code ici
    error_log('Hook wp_privacy_personal_data_export_file_created déclenché');
}

Actualités

Chargement des actualités...