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

Automattic\WooCommerce\Admin\Notes

WC_Admin_Notes_Deactivate_Plugin::get_note() public WC 1.0

Get the note.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$result = WC_Admin_Notes_Deactivate_Plugin::get_note();

Код WC_Admin_Notes_Deactivate_Plugin::get_note() WC 4.7.1

<?php
public static function get_note() {
	$note = new WC_Admin_Note();
	$note->set_title( __( 'Deactivate old WooCommerce Admin version', 'woocommerce' ) );
	$note->set_content( __( 'Your current version of WooCommerce Admin is outdated and a newer version is included with WooCommerce.  We recommend deactivating the plugin and using the stable version included with WooCommerce.', 'woocommerce' ) );
	$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_name( self::NOTE_NAME );
	$note->set_content_data( (object) array() );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'deactivate-feature-plugin',
		__( 'Deactivate', 'woocommerce' ),
		wc_admin_url( '&action=deactivate-feature-plugin' ),
		'unactioned',
		true
	);
	return $note;
}