Automattic\WooCommerce\Internal\Admin\Notes

SellingOnlineCourses::get_note()public staticWC 1.0

Get the note.

Method of the class: SellingOnlineCourses{}

No Hooks.

Return

Note.

Usage

$result = SellingOnlineCourses::get_note();

SellingOnlineCourses::get_note() code WC 8.7.0

public static function get_note() {
	$note = new Note();

	$note->set_title( __( 'Do you want to sell online courses?', 'woocommerce' ) );
	$note->set_content( __( 'Online courses are a great solution for any business that can teach a new skill. Since courses don’t require physical product development or shipping, they’re affordable, fast to create, and can generate passive income for years to come. In this article, we provide you more information about selling courses using WooCommerce.', 'woocommerce' ) );
	$note->set_content_data( (object) array() );
	$note->set_type( Note::E_WC_ADMIN_NOTE_MARKETING );
	$note->set_name( self::NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'learn-more',
		__( 'Learn more', 'woocommerce' ),
		'https://woo.com/posts/how-to-sell-online-courses-wordpress/?utm_source=inbox&utm_medium=product',
		Note::E_WC_ADMIN_NOTE_ACTIONED
	);

	return $note;
}