WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

WooSubscriptionsNotes::add_no_connection_note() public WC 1.0

Adds a note prompting to connect to WooCommerce.com.

{} It's a method of the class: WooSubscriptionsNotes{}

No Hooks.

Return

null. Nothing.

Usage

$WooSubscriptionsNotes = new WooSubscriptionsNotes();
$WooSubscriptionsNotes->add_no_connection_note();

Code of WooSubscriptionsNotes::add_no_connection_note() WC 5.3.0

<?php
public function add_no_connection_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
	);
	$note->save();
}