get_notes_with_name( self::NOTE_NAME ); if ( ! empty( $note_ids ) ) { return; } $note = new WC_Admin_Note(); $note->set_title( __( 'New feature(s)', 'woocommerce-admin' ) ); $note->set_content( __( 'Welcome to the new WooCommerce experience! In this new release you\'ll be able to have a glimpse of how your store is doing in the Dashboard, manage important aspects of your business (such as managing orders, stock, reviews) from anywhere in the interface, dive into your store data with a completely new Analytics section and more!', 'woocommerce-admin' ) ); $note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL ); $note->set_icon( 'info' ); $note->set_name( self::NOTE_NAME ); $note->set_content_data( (object) array() ); $note->set_source( 'woocommerce-admin' ); $note->add_action( 'learn-more', __( 'Learn more', 'woocommerce-admin' ), 'https://woocommerce.wordpress.com/' ); $note->save(); } } new WC_Admin_Notes_Welcome_Message();