woocommerce_privacy_export_order_personal_data_props хук-фильтрWC 3.4.0

Get personal data (key/value pairs) for an order object.

Использование

add_filter( 'woocommerce_privacy_export_order_personal_data_props', 'wp_kama_woocommerce_privacy_export_order_personal_data_props_filter' );

/**
 * Function for `woocommerce_privacy_export_order_personal_data_props` filter-hook.
 * 
 * @param  $order 
 *
 * @return 
 */
function wp_kama_woocommerce_privacy_export_order_personal_data_props_filter( $order ){

	// filter...
	return $order;
}
$order
-

Список изменений

С версии 3.4.0 Введена.

Где вызывается хук

WC_Privacy_Exporters::get_order_personal_data()
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
);

Где используется хук в WooCommerce

Использование не найдено.