diff --git a/plugins/woocommerce-admin/src/Events.php b/plugins/woocommerce-admin/src/Events.php index a8711f79861..a917b74cda1 100644 --- a/plugins/woocommerce-admin/src/Events.php +++ b/plugins/woocommerce-admin/src/Events.php @@ -28,6 +28,7 @@ use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Real_Time_Order_Alerts; use \Automattic\WooCommerce\Admin\RemoteInboxNotifications\DataSourcePoller; use \Automattic\WooCommerce\Admin\RemoteInboxNotifications\RemoteInboxNotificationsEngine; use \Automattic\WooCommerce\Admin\Loader; +use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Need_Some_Inspiration; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Learn_More_About_Product_Settings; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Online_Clothing_Store; use \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_First_Product; @@ -88,6 +89,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_Need_Some_Inspiration::possibly_add_note(); WC_Admin_Notes_Learn_More_About_Product_Settings::possibly_add_note(); WC_Admin_Notes_Online_Clothing_Store::possibly_add_note(); WC_Admin_Notes_First_Product::possibly_add_note(); diff --git a/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Need_Some_Inspiration.php b/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Need_Some_Inspiration.php new file mode 100644 index 00000000000..23787ac5692 --- /dev/null +++ b/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Need_Some_Inspiration.php @@ -0,0 +1,66 @@ +set_title( __( 'Do you need some inspiration?', 'woocommerce-admin' ) ); + $note->set_content( __( 'Check some of our favorite customer stories from entrepreneurs, agencies, and developers in our global community.', 'woocommerce-admin' ) ); + $note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL ); + $note->set_name( self::NOTE_NAME ); + $note->set_content_data( (object) array() ); + $note->set_source( 'woocommerce-admin' ); + $note->add_action( + 'need-some-inspiration', + __( 'See success stories', 'woocommerce-admin' ), + 'https://woocommerce.com/success-stories/?utm_source=inbox', + WC_Admin_Note::E_WC_ADMIN_NOTE_ACTIONED, + true + ); + return $note; + } +}