WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Marketing::get_note() public WC 1.0

Get the note.

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

No Hooks.

Return

Note. Nothing.

Usage

$result = Marketing::get_note();

Code of Marketing::get_note() WC 5.3.0

<?php
public static function get_note() {
	// Don't show the note unless the store has been active at least 5 days.
	if ( ! self::wc_admin_active_for( 5 * DAY_IN_SECONDS ) ) {
		return;
	}

	$note = new Note();
	$note->set_title( __( 'Connect with your audience', 'woocommerce' ) );
	$note->set_content( __( 'Grow your customer base and increase your sales with marketing tools built for WooCommerce.', 'woocommerce' ) );
	$note->set_type( 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(
		'open-marketing-hub',
		__( 'Open marketing hub', 'woocommerce' ),
		admin_url( 'admin.php?page=wc-admin&path=/marketing' ),
		Note::E_WC_ADMIN_NOTE_ACTIONED
	);
	return $note;
}