woocommerce_order_note_deleted
Action hook fired after an order note is deleted.
Usage
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.
Changelog
Since 9.1.0 | Introduced. |
Where the hook is called
woocommerce_order_note_deleted
woocommerce/includes/wc-order-functions.php 1223
do_action( 'woocommerce_order_note_deleted', $note_id, $note );