Automattic\WooCommerce\Internal\Admin\Notes

OrderMilestones::get_note()public staticWC 1.0

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

Method of the class: OrderMilestones{}

No Hooks.

Return

Note.

Usage

$result = OrderMilestones::get_note();

OrderMilestones::get_note() code 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();
	if ( ! isset( $content_data->current_milestone ) ) {
		return false;
	}
	return self::get_note_by_milestone(
		$content_data->current_milestone
	);
}