WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

CouponPageMoved::get_note() public WC 1.0

Get the note object for this class.

{} It's a method of the class: CouponPageMoved{}

No Hooks.

Return

Note. Nothing.

Usage

$result = CouponPageMoved::get_note();

Code of CouponPageMoved::get_note() WC 5.3.0

<?php
public static function get_note() {
	$note = new Note();
	$note->set_title( __( 'Coupon management has moved!', 'woocommerce' ) );
	$note->set_content( __( 'Coupons can now be managed from Marketing > Coupons. Click the button below to remove the legacy WooCommerce > Coupons menu item.', 'woocommerce' ) );
	$note->set_type( Note::E_WC_ADMIN_NOTE_UPDATE );
	$note->set_name( self::NOTE_NAME );
	$note->set_content_data( new stdClass() );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'remove-legacy-coupon-menu',
		__( 'Remove legacy coupon menu', 'woocommerce' ),
		wc_admin_url( '&action=remove-coupon-menu' ),
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		true
	);

	return $note;
}