Automattic\WooCommerce\Internal\Admin\Notes

InstallJPAndWCSPlugins::get_note()public staticWC 1.0

Get the note.

Method of the class: InstallJPAndWCSPlugins{}

No Hooks.

Return

Note.

Usage

$result = InstallJPAndWCSPlugins::get_note();

InstallJPAndWCSPlugins::get_note() code WC 9.3.3

public static function get_note() {
	$content = __( 'We noticed that there was a problem during the Jetpack and WooCommerce Shipping & Tax install. Please try again and enjoy all the advantages of having the plugins connected to your store! Sorry for the inconvenience. The "Jetpack" and "WooCommerce Shipping & Tax" plugins will be installed & activated for free.', 'woocommerce' );

	$note = new Note();
	$note->set_title( __( 'Uh oh... There was a problem during the Jetpack and WooCommerce Shipping & Tax install. Please try again.', 'woocommerce' ) );
	$note->set_content( $content );
	$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(
		'install-jp-and-wcs-plugins',
		__( 'Install plugins', 'woocommerce' ),
		false,
		Note::E_WC_ADMIN_NOTE_ACTIONED
	);
	return $note;
}