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

Automattic\WooCommerce\Admin\Notes

ManageStoreActivityFromHomeScreen::get_note() public WC 1.0

Get the note.

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

Хуков нет.

Возвращает

Note/null.

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

$result = ManageStoreActivityFromHomeScreen::get_note();

Код ManageStoreActivityFromHomeScreen::get_note() WC 5.0.0

<?php
public static function get_note() {
	$installed_version = get_option( 'woocommerce_admin_version' );
	if ( ! version_compare( $installed_version, '1.9.0', '=' ) ) {
		return;
	}

	$note = new Note();

	$note->set_title( __( 'New! Manage your store activity from the Home screen', 'woocommerce' ) );
	$note->set_content( __( 'Start your day knowing the next steps you need to take with your orders, products, and customer feedback.<br/><br/>Read more about how to use the activity panels on the Home screen.', '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://docs.woocommerce.com/document/home-screen/?utm_source=inbox"',
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		true
	);

	return $note;
}