woocommerce_privacy_export_order_personal_data_props
Использование
add_filter( 'woocommerce_privacy_export_order_personal_data_props', 'wp_kama_woocommerce_privacy_export_order_personal_data_props_filter', 10, 2 ); /** * Function for `woocommerce_privacy_export_order_personal_data_props` filter-hook. * * @param $array * @param $order * * @return */ function wp_kama_woocommerce_privacy_export_order_personal_data_props_filter( $array, $order ){ // filter... return $array; }
- $array
- -
- $order
- -
Где вызывается хук
woocommerce_privacy_export_order_personal_data_props
woocommerce/includes/class-wc-privacy-exporters.php 248-264
$props_to_export = apply_filters( 'woocommerce_privacy_export_order_personal_data_props', array( 'order_number' => __( 'Order Number', 'woocommerce' ), 'date_created' => __( 'Order Date', 'woocommerce' ), 'total' => __( 'Order Total', 'woocommerce' ), 'items' => __( 'Items Purchased', 'woocommerce' ), 'customer_ip_address' => __( 'IP Address', 'woocommerce' ), 'customer_user_agent' => __( 'Browser User Agent', 'woocommerce' ), 'formatted_billing_address' => __( 'Billing Address', 'woocommerce' ), 'formatted_shipping_address' => __( 'Shipping Address', 'woocommerce' ), 'billing_phone' => __( 'Phone Number', 'woocommerce' ), 'billing_email' => __( 'Email Address', 'woocommerce' ), 'shipping_phone' => __( 'Shipping Phone Number', 'woocommerce' ), ), $order );