woocommerce_privacy_export_download_personal_data
Allow extensions to register their own personal data for this download for the export.
Usage
add_filter( 'woocommerce_privacy_export_download_personal_data', 'wp_kama_woocommerce_privacy_export_download_personal_data_filter', 10, 2 ); /** * Function for `woocommerce_privacy_export_download_personal_data` filter-hook. * * @param array $personal_data Array of name value pairs to expose in the export. * @param WC_Order $order An order object. * * @return array */ function wp_kama_woocommerce_privacy_export_download_personal_data_filter( $personal_data, $order ){ // filter... return $personal_data; }
- $personal_data(array)
- Array of name value pairs to expose in the export.
- $order(WC_Order)
- An order object.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
woocommerce_privacy_export_download_personal_data
woocommerce/includes/class-wc-privacy-exporters.php 387
$personal_data = apply_filters( 'woocommerce_privacy_export_download_personal_data', $personal_data, $download );