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

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

add_filter( 'woocommerce_privacy_erase_customer_personal_data_props', 'wp_kama_woocommerce_privacy_erase_customer_personal_data_props_filter', 10, 2 );

/**
 * Function for `woocommerce_privacy_erase_customer_personal_data_props` filter-hook.
 * 
 * @param  $array    
 * @param  $customer 
 *
 * @return 
 */
function wp_kama_woocommerce_privacy_erase_customer_personal_data_props_filter( $array, $customer ){

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

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

WC_Privacy_Erasers::customer_data_eraser()
woocommerce_privacy_erase_customer_personal_data_props
woocommerce/includes/class-wc-privacy-erasers.php 43-69
$props_to_erase = apply_filters(
	'woocommerce_privacy_erase_customer_personal_data_props',
	array(
		'billing_first_name'  => __( 'Billing First Name', 'woocommerce' ),
		'billing_last_name'   => __( 'Billing Last Name', 'woocommerce' ),
		'billing_company'     => __( 'Billing Company', 'woocommerce' ),
		'billing_address_1'   => __( 'Billing Address 1', 'woocommerce' ),
		'billing_address_2'   => __( 'Billing Address 2', 'woocommerce' ),
		'billing_city'        => __( 'Billing City', 'woocommerce' ),
		'billing_postcode'    => __( 'Billing Postal/Zip Code', 'woocommerce' ),
		'billing_state'       => __( 'Billing State', 'woocommerce' ),
		'billing_country'     => __( 'Billing Country / Region', 'woocommerce' ),
		'billing_phone'       => __( 'Billing Phone Number', 'woocommerce' ),
		'billing_email'       => __( 'Email Address', 'woocommerce' ),
		'shipping_first_name' => __( 'Shipping First Name', 'woocommerce' ),
		'shipping_last_name'  => __( 'Shipping Last Name', 'woocommerce' ),
		'shipping_company'    => __( 'Shipping Company', 'woocommerce' ),
		'shipping_address_1'  => __( 'Shipping Address 1', 'woocommerce' ),
		'shipping_address_2'  => __( 'Shipping Address 2', 'woocommerce' ),
		'shipping_city'       => __( 'Shipping City', 'woocommerce' ),
		'shipping_postcode'   => __( 'Shipping Postal/Zip Code', 'woocommerce' ),
		'shipping_state'      => __( 'Shipping State', 'woocommerce' ),
		'shipping_country'    => __( 'Shipping Country / Region', 'woocommerce' ),
		'shipping_phone'      => __( 'Shipping Phone Number', 'woocommerce' ),
	),
	$customer
);

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

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