Automattic\WooCommerce\Internal\Admin\Notes

WooSubscriptionsNotes::get_note()public staticWC 1.0

Get the WooCommerce.com connection note

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

Хуков нет.

Возвращает

null. Ничего.

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

$result = WooSubscriptionsNotes::get_note();

Код WooSubscriptionsNotes::get_note() WC 6.9.4

public static function get_note() {
	$note = new Note();
	$note->set_title( __( 'Connect to WooCommerce.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;
}