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

Allow extensions to remove their own personal data for this order.

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

add_action( 'woocommerce_privacy_remove_order_personal_data', 'wp_kama_woocommerce_privacy_remove_order_personal_data_action' );

/**
 * Function for `woocommerce_privacy_remove_order_personal_data` action-hook.
 * 
 * @param WC_Order $order A customer object.
 *
 * @return void
 */
function wp_kama_woocommerce_privacy_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_remove_order_personal_data
woocommerce/includes/class-wc-privacy-erasers.php 362
do_action( 'woocommerce_privacy_remove_order_personal_data', $order );

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

woocommerce/src/Internal/Admin/Schedulers/CustomersScheduler.php 33
add_action( 'woocommerce_privacy_remove_order_personal_data', array( __CLASS__, 'schedule_anonymize' ) );