get_notes_with_name( self::NOTE_NAME ); if ( ! empty( $note_ids ) ) { return; } $content = __( 'Install the WooCommerce mobile app to manage orders, receive sales notifications, and view key metrics — wherever you are.', 'woocommerce-admin' ); $note = new WC_Admin_Note(); $note->set_title( __( 'Install Woo mobile app', '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_icon( 'phone' ); $note->set_name( self::NOTE_NAME ); $note->set_source( 'woocommerce-admin' ); $note->add_action( 'learn-more', __( 'Learn more', 'woocommerce-admin' ), 'https://woocommerce.com/mobile/' ); $note->save(); } }