woocommerce_note_created
Fires when an admin note is created.
Usage
add_action( 'woocommerce_note_created', 'wp_kama_woocommerce_note_created_action' ); /** * Function for `woocommerce_note_created` action-hook. * * @param int $note_id Note ID. * * @return void */ function wp_kama_woocommerce_note_created_action( $note_id ){ // action... }
- $note_id(int)
- Note ID.
Where the hook is called
woocommerce_note_created
woocommerce/src/Admin/Notes/DataStore.php 58
do_action( 'woocommerce_note_created', $note_id );