woocommerce_privacy_export_customer_personal_data
Allow extensions to register their own personal data for this customer for the export.
Использование
add_filter( 'woocommerce_privacy_export_customer_personal_data', 'wp_kama_woocommerce_privacy_export_customer_personal_data_filter', 10, 2 ); /** * Function for `woocommerce_privacy_export_customer_personal_data` filter-hook. * * @param array $personal_data Array of name value pairs. * @param WC_Order $order A customer object. * * @return array */ function wp_kama_woocommerce_privacy_export_customer_personal_data_filter( $personal_data, $order ){ // filter... return $personal_data; }
- $personal_data(массив)
- Array of name value pairs.
- $order(WC_Order)
- A customer object.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
woocommerce_privacy_export_customer_personal_data
woocommerce/includes/class-wc-privacy-exporters.php 234
$personal_data = apply_filters( 'woocommerce_privacy_export_customer_personal_data', $personal_data, $customer );