Automattic\WooCommerce\Internal\Admin\Notes

OrderMilestones::get_note()public staticWC 1.0

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

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

Хуков нет.

Возвращает

Note.

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

$result = OrderMilestones::get_note();

Код OrderMilestones::get_note() WC 9.3.3

public static function get_note() {
	$note = Notes::get_note_by_name( self::NOTE_NAME );
	if ( ! $note ) {
		return false;
	}
	$content_data = $note->get_content_data();
	if ( ! isset( $content_data->current_milestone ) ) {
		return false;
	}
	return self::get_note_by_milestone(
		$content_data->current_milestone
	);
}