woocommerce_privacy_before_remove_order_personal_data
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 | Введена. |
Где вызывается хук
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 );