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

Automattic\WooCommerce\Admin\Notes

NavigationNudge::get_note() public WC 1.0

Get the note.

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

Хуков нет.

Возвращает

Note.

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

$result = NavigationNudge::get_note();

Код NavigationNudge::get_note() WC 5.4.1

<?php
public static function get_note() {
	if ( Features::is_enabled( 'navigation' ) || ! Features::exists( 'navigation' ) ) {
		return;
	}

	$note = new Note();
	$note->set_title( __( 'You now have access to the WooCommerce navigation', 'woocommerce' ) );
	$note->set_content( __( 'We’re introducing a new navigation for a more intuitive and improved user experience. You can enable the beta version of the new experience in the Advanced Settings. Enable it now for your store.', 'woocommerce' ) );
	$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_name( self::NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'enable-navigation',
		__( 'Enable in Settings', 'woocommerce' ),
		admin_url( 'admin.php?page=wc-settings&tab=advanced&section=features' )
	);
	return $note;
}