Automattic\WooCommerce\Internal\Admin\Notes

WooSubscriptionsNotes::get_note()public staticWC 1.0

Get the Woo.com connection note

Метод класса: WooSubscriptionsNotes{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WooSubscriptionsNotes::get_note();

Код WooSubscriptionsNotes::get_note() WC 8.6.1

public static function get_note() {
	$note = new Note();
	$note->set_title( __( 'Connect to Woo.com', 'woocommerce' ) );
	$note->set_content( __( 'Connect to get important product notifications and updates.', 'woocommerce' ) );
	$note->set_content_data( (object) array() );
	$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_name( self::CONNECTION_NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'connect',
		__( 'Connect', 'woocommerce' ),
		'?page=wc-addons&section=helper',
		Note::E_WC_ADMIN_NOTE_UNACTIONED
	);
	return $note;
}