diff --git a/plugins/woocommerce-admin/src/Events.php b/plugins/woocommerce-admin/src/Events.php index 14842f0191d..f831ddee0e2 100644 --- a/plugins/woocommerce-admin/src/Events.php +++ b/plugins/woocommerce-admin/src/Events.php @@ -24,6 +24,7 @@ use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Marketing; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Start_Dropshipping_Business; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_WooCommerce_Subscriptions; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Migrate_From_Shopify; +use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Launch_Checklist; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Real_Time_Order_Alerts; use \Automattic\WooCommerce\Admin\RemoteInboxNotifications\DataSourcePoller; use \Automattic\WooCommerce\Admin\RemoteInboxNotifications\RemoteInboxNotificationsEngine; @@ -90,6 +91,7 @@ class Events { WC_Admin_Notes_Start_Dropshipping_Business::possibly_add_note(); WC_Admin_Notes_WooCommerce_Subscriptions::possibly_add_note(); WC_Admin_Notes_Migrate_From_Shopify::possibly_add_note(); + WC_Admin_Notes_Launch_Checklist::possibly_add_note(); WC_Admin_Notes_Home_Screen_Feedback::possibly_add_note(); WC_Admin_Notes_Need_Some_Inspiration::possibly_add_note(); WC_Admin_Notes_Learn_More_About_Product_Settings::possibly_add_note(); diff --git a/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Launch_Checklist.php b/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Launch_Checklist.php new file mode 100644 index 00000000000..150db001c44 --- /dev/null +++ b/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Launch_Checklist.php @@ -0,0 +1,57 @@ +set_title( __( 'Ready to launch your store?', 'woocommerce-admin' ) ); + $note->set_content( $content ); + $note->set_content_data( (object) array() ); + $note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL ); + $note->set_name( self::NOTE_NAME ); + $note->set_source( 'woocommerce-admin' ); + $note->add_action( 'learn-more', __( 'Learn more', 'woocommerce-admin' ), 'https://woocommerce.com/posts/pre-launch-checklist-the-essentials/?utm_source=inbox' ); + return $note; + } +}