Automattic\WooCommerce\Internal\Admin\Notes

NewSalesRecord::get_note()public staticWC 1.0

Get the note. This is used for localizing the note.

Метод класса: NewSalesRecord{}

Хуков нет.

Возвращает

Note.

Использование

$result = NewSalesRecord::get_note();

Код NewSalesRecord::get_note() WC 7.1.0

public static function get_note() {
	$note = Notes::get_note_by_name( self::NOTE_NAME );
	if ( ! $note ) {
		return false;
	}
	$content_data = $note->get_content_data();
	return self::get_note_with_record_data(
		$content_data->old_record_date,
		$content_data->old_record_amt,
		$content_data->new_record_date,
		$content_data->new_record_amt
	);
}