woocommerce_privacy_export_download_personal_data
Allow extensions to register their own personal data for this download for the export.
Использование
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 of name value pairs to expose in the export.
- $order(WC_Order)
- An order object.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
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 );