Automattic\WooCommerce\Internal\Admin\Notes
NewSalesRecord::get_note
Get the note. This is used for localizing the note.
Method of the class: NewSalesRecord{}
No Hooks.
Returns
Note.
Usage
$result = NewSalesRecord::get_note();
NewSalesRecord::get_note() NewSalesRecord::get note code WC 10.5.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
);
}