Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFeatureHighlightNotification::get_note │ private │ WC 1.0

Get the inbox note.

Method of the class: OrderWithdrawalFeatureHighlightNotification{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_note(): Note;

OrderWithdrawalFeatureHighlightNotification::get_note() code WC 11.1.2

private function get_note(): Note {
	$note = new Note();

	$note->set_title(
		__( 'Enable order withdrawal for EU regulatory requirements', 'woocommerce' )
	);
	$note->set_content(
		__(
			'Stores selling to EU countries may need to offer customers a way to withdraw from qualifying orders. Review how to enable the order withdrawal feature in the Advanced settings.',
			'woocommerce'
		)
	);
	$note->set_content_data( (object) array() );
	$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_name( self::NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'review-feature-settings',
		__( 'Get started', 'woocommerce' ),
		admin_url( self::FEATURES_SETTINGS_URL ),
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		true
	);
	$note->add_action(
		'learn-more',
		__( 'Learn more', 'woocommerce' ),
		self::DOCUMENTATION_URL,
		Note::E_WC_ADMIN_NOTE_UNACTIONED
	);

	return $note;
}