Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFeatureHighlightNotification::get_note │ private │ WC 1.0

Get the inbox note.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->get_note(): Note;

Код OrderWithdrawalFeatureHighlightNotification::get_note() WC 11.2.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;
}