woocommerce_note_loaded

woocommerce_note_loaded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_note_loaded') is found 2 times:

  • /src/Admin/Notes/DataStore.php line 92
    			 * Fires when an admin note is loaded.
    			 *
    			 * @param int $note_id Note ID.
    			 */
    			do_action( 'woocommerce_note_loaded', $note );
    		} elseif ( $note_row ) {
    			$note->set_name( $note_row->name );
    			$note->set_type( $note_row->type );
    			$note->set_locale( $note_row->locale );
    			$note->set_title( $note_row->title );
    			$note->set_content( $note_row->content );
    
  • /src/Admin/Notes/DataStore.php line 126
    			 * Fires when an admin note is loaded.
    			 *
    			 * @param int $note_id Note ID.
    			 */
    			do_action( 'woocommerce_note_loaded', $note );
    		} else {
    			throw new \Exception( __( 'Invalid admin note', 'woocommerce' ) );
    		}
    	}
    
    	/**