woocommerce_privacy_export_order_personal_data_meta хук-фильтрWC 1.0

Export meta data.

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

add_filter( 'woocommerce_privacy_export_order_personal_data_meta', 'wp_kama_woocommerce_privacy_export_order_personal_data_meta_filter' );

/**
 * Function for `woocommerce_privacy_export_order_personal_data_meta` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_privacy_export_order_personal_data_meta_filter( $array ){

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

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

WC_Privacy_Exporters::get_order_personal_data()
woocommerce_privacy_export_order_personal_data_meta
woocommerce/includes/class-wc-privacy-exporters.php 302-310
$meta_to_export = apply_filters(
	'woocommerce_privacy_export_order_personal_data_meta',
	array(
		'Payer first name'     => __( 'Payer first name', 'woocommerce' ),
		'Payer last name'      => __( 'Payer last name', 'woocommerce' ),
		'Payer PayPal address' => __( 'Payer PayPal address', 'woocommerce' ),
		'Transaction ID'       => __( 'Transaction ID', 'woocommerce' ),
	)
);

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

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