PATH:
home
/
letacommog
/
broderie
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-admin
/
src
/
Notes
<?php /** * WooCommerce Admin: Insight - First sale * * Adds a note to give insight about the first sale. * * @package WooCommerce\Admin */ namespace Automattic\WooCommerce\Admin\Notes; defined( 'ABSPATH' ) || exit; /** * 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() { // We want to show the note after eight days. if ( ! self::wc_admin_active_for( 8 * DAY_IN_SECONDS ) ) { 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; } }
[+]
..
[-] LaunchChecklist.php
[edit]
[-] SetUpAdditionalPaymentTypes.php
[edit]
[-] CouponPageMoved.php
[edit]
[-] FirstProduct.php
[edit]
[-] OrderMilestones.php
[edit]
[-] ChooseNiche.php
[edit]
[-] EditProductsOnTheMove.php
[edit]
[-] NoteTraits.php
[edit]
[-] TestCheckout.php
[edit]
[-] WooSubscriptionsNotes.php
[edit]
[-] CustomizeStoreWithBlocks.php
[edit]
[-] ReviewShippingSettings.php
[edit]
[-] EUVATNumber.php
[edit]
[-] MigrateFromShopify.php
[edit]
[-] TrackingOptIn.php
[edit]
[-] HistoricalData.php
[edit]
[-] ConfirmTaxSettings.php
[edit]
[-] PerformanceOnMobile.php
[edit]
[-] GoogleAdsAndMarketing.php
[edit]
[-] RealTimeOrderAlerts.php
[edit]
[-] InstallJPAndWCSPlugins.php
[edit]
[-] OnboardingPayments.php
[edit]
[-] InsightFirstSale.php
[edit]
[-] GivingFeedbackNotes.php
[edit]
[-] ManageOrdersOnTheGo.php
[edit]
[-] NewSalesRecord.php
[edit]
[-] HomeScreenFeedback.php
[edit]
[-] NavigationFeedbackFollowUp.php
[edit]
[-] Note.php
[edit]
[-] NavigationFeedback.php
[edit]
[-] DataStore.php
[edit]
[-] Marketing.php
[edit]
[-] DeactivatePlugin.php
[edit]
[-] FilterByProductVariationsInReports.php
[edit]
[-] NeedSomeInspiration.php
[edit]
[-] OnboardingEmailMarketing.php
[edit]
[-] StartDropshippingBusiness.php
[edit]
[-] PersonalizeStore.php
[edit]
[-] Notes.php
[edit]
[-] WooCommercePayments.php
[edit]
[-] DrawAttention.php
[edit]
[-] MobileApp.php
[edit]
[-] WooCommerceSubscriptions.php
[edit]
[-] OnlineClothingStore.php
[edit]
[-] SellingOnlineCourses.php
[edit]
[-] DeprecatedNotes.php
[edit]