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

Automattic\WooCommerce\Admin\Notes

WelcomeToWooCommerceForStoreUsers::get_note() public WC 1.0

Get the note.

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

Хуков нет.

Возвращает

Note|null.

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

$result = WelcomeToWooCommerceForStoreUsers::get_note();

Код WelcomeToWooCommerceForStoreUsers::get_note() WC 5.5.2

<?php
public static function get_note() {
	// Only add if coming from Calypso.
	if ( ! isset( $_GET['from-calypso'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
		return;
	}

	$note = new Note();
	$note->set_title( __( 'Welcome to your new store management experience', 'woocommerce' ) );
	$note->set_content( __( "We've designed your navigation and home screen to help you focus on the things that matter most in managing your online 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(
		'learn-more',
		__( 'Learn more', 'woocommerce' ),
		'https://wordpress.com/support/new-woocommerce-experience-on-wordpress-dot-com/"',
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		true
	);

	return $note;
}