PATH:
home
/
lab2454c
/
igpma.com
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
Admin
/
Notes
<?php /** * WooCommerce Admin: Insight - First sale * * Adds a note to give insight about the first sale. * * @package WooCommerce\Admin */ namespace Automattic\WooCommerce\Internal\Admin\Notes; defined( 'ABSPATH' ) || exit; use \Automattic\WooCommerce\Admin\Notes\Note; use \Automattic\WooCommerce\Admin\Notes\NoteTraits; /** * Insight_First_Sale. */ class InsightFirstSale { /** * Note traits. */ use NoteTraits; /** * Name of the note for use in the database. */ const NOTE_NAME = 'wc-admin-insight-first-sale'; /** * Get the note. * * @return Note */ public static function get_note() { if ( ! self::is_wc_admin_active_in_date_range( 'week-1-4' ) ) { return; } $note = new Note(); $note->set_title( __( 'Did you know?', 'woocommerce' ) ); $note->set_content( __( 'A WooCommerce powered store needs on average 31 days to get the first sale. You\'re on the right track! Do you find this type of insight useful?', 'woocommerce' ) ); $note->set_type( Note::E_WC_ADMIN_NOTE_SURVEY ); $note->set_name( self::NOTE_NAME ); $note->set_content_data( (object) array() ); $note->set_source( 'woocommerce-admin' ); // Note that there is no corresponding function called in response to // this. Apart from setting the note to actioned a tracks event is // sent in NoteActions. $note->add_action( 'affirm-insight-first-sale', __( 'Yes', 'woocommerce' ), false, Note::E_WC_ADMIN_NOTE_ACTIONED, false, __( 'Thanks for your feedback', 'woocommerce' ) ); $note->add_action( 'deny-insight-first-sale', __( 'No', 'woocommerce' ), false, Note::E_WC_ADMIN_NOTE_ACTIONED, false, __( 'Thanks for your feedback', 'woocommerce' ) ); return $note; } }
[-] GivingFeedbackNotes.php
[edit]
[-] WooCommerceSubscriptions.php
[edit]
[-] UpdateStoreDetails.php
[edit]
[-] SellingOnlineCourses.php
[edit]
[-] FirstProduct.php
[edit]
[-] ChoosingTheme.php
[edit]
[-] UnsecuredReportFiles.php
[edit]
[-] ManageOrdersOnTheGo.php
[edit]
[-] MerchantEmailNotifications.php
[edit]
[-] ManageStoreActivityFromHomeScreen.php
[edit]
[+]
..
[-] MobileApp.php
[edit]
[-] CustomizingProductCatalog.php
[edit]
[-] CouponPageMoved.php
[edit]
[-] AddFirstProduct.php
[edit]
[-] InsightFirstSale.php
[edit]
[-] OrderMilestones.php
[edit]
[-] TrackingOptIn.php
[edit]
[-] OnboardingPayments.php
[edit]
[-] WooCommercePayments.php
[edit]
[-] PersonalizeStore.php
[edit]
[-] TestCheckout.php
[edit]
[-] EmailNotification.php
[edit]
[-] MagentoMigration.php
[edit]
[-] LaunchChecklist.php
[edit]
[-] MarketingJetpack.php
[edit]
[-] WooSubscriptionsNotes.php
[edit]
[-] RealTimeOrderAlerts.php
[edit]
[-] NewSalesRecord.php
[edit]
[-] AddingAndManangingProducts.php
[edit]
[-] InstallJPAndWCSPlugins.php
[edit]
[-] InsightFirstProductAndPayment.php
[edit]
[-] EditProductsOnTheMove.php
[edit]
[-] FirstDownlaodableProduct.php
[edit]
[-] EUVATNumber.php
[edit]
[-] CompleteStoreDetails.php
[edit]
[-] OnlineClothingStore.php
[edit]
[-] MigrateFromShopify.php
[edit]
[-] CustomizeStoreWithBlocks.php
[edit]
[-] PerformanceOnMobile.php
[edit]
[-] PaymentsRemindMeLater.php
[edit]
[-] WelcomeToWooCommerceForStoreUsers.php
[edit]