woocommerce_note_loaded

woocommerce_note_loaded

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_note_loaded') is found 2 times:

  • /src/Admin/Notes/DataStore.php line 91
    			 * 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 125
    			 * 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' ) );
    		}
    	}
    
    	/**