woocommerce_order_note_deleted
Action hook fired after an order note is deleted.
Использование
add_action( 'woocommerce_order_note_deleted', 'wp_kama_woocommerce_order_note_deleted_action', 10, 2 ); /** * Function for `woocommerce_order_note_deleted` action-hook. * * @param int $note_id Order note ID. * @param stdClass $note Object with the deleted order note details. * * @return void */ function wp_kama_woocommerce_order_note_deleted_action( $note_id, $note ){ // action... }
- $note_id(int)
- Order note ID.
- $note(stdClass)
- Object with the deleted order note details.
Список изменений
С версии 9.1.0 | Введена. |
Где вызывается хук
woocommerce_order_note_deleted
woocommerce/includes/wc-order-functions.php 1223
do_action( 'woocommerce_order_note_deleted', $note_id, $note );