Automattic\WooCommerce\Internal\Admin\Notes

MarketingJetpack::get_note()public staticWC 1.0

Get the note.

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

Хуков нет.

Возвращает

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

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

$result = MarketingJetpack::get_note();

Код MarketingJetpack::get_note() WC 9.4.2

public static function get_note() {
	$note = new Note();
	$note->set_title( __( 'Protect your WooCommerce Store with Jetpack Backup.', 'woocommerce' ) );
	$note->set_content( __( 'Store downtime means lost sales. One-click restores get you back online quickly if something goes wrong.', 'woocommerce' ) );
	$note->set_type( Note::E_WC_ADMIN_NOTE_MARKETING );
	$note->set_name( self::NOTE_NAME );
	$note->set_layout( 'thumbnail' );
	$note->set_image(
		WC_ADMIN_IMAGES_FOLDER_URL . '/admin_notes/marketing-jetpack-2x.png'
	);
	$note->set_content_data( (object) array() );
	$note->set_source( 'woocommerce-admin-notes' );
	$note->add_action(
		'jetpack-backup-woocommerce',
		__( 'Get backups', 'woocommerce' ),
		esc_url( 'https://jetpack.com/upgrade/backup-woocommerce/?utm_source=inbox&utm_medium=automattic_referred&utm_campaign=jp_backup_to_woo' ),
		Note::E_WC_ADMIN_NOTE_ACTIONED
	);
	return $note;
}