WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\Notes

CouponPageMoved::get_note() public WC 1.0

Get the note object for this class.

{} Это метод класса: CouponPageMoved{}

Хуков нет.

Возвращает

Note.

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

$result = CouponPageMoved::get_note();

Код CouponPageMoved::get_note() WC 5.4.1

<?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;
}