woocommerce_privacy_before_remove_order_personal_data хук-событиеWC 3.4.0

Allow extensions to remove their own personal data for this order first, so order data is still available.

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

add_action( 'woocommerce_privacy_before_remove_order_personal_data', 'wp_kama_woocommerce_privacy_before_remove_order_personal_data_action' );

/**
 * Function for `woocommerce_privacy_before_remove_order_personal_data` action-hook.
 * 
 * @param WC_Order $order A customer object.
 *
 * @return void
 */
function wp_kama_woocommerce_privacy_before_remove_order_personal_data_action( $order ){

	// action...
}
$order(WC_Order)
A customer object.

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

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

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

WC_Privacy_Erasers::remove_order_personal_data()
woocommerce_privacy_before_remove_order_personal_data
woocommerce/includes/class-wc-privacy-erasers.php 227
do_action( 'woocommerce_privacy_before_remove_order_personal_data', $order );

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

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