golden hour
/home/godaofbq/hyperbarichelp.com/wp-content/plugins/woocommerce/src/Internal/Admin
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
420 B
Del
OK
ActivityPanels.php
1.58 KB
Del
OK
Agentic
-
Del
OK
Analytics.php
24.59 KB
Del
OK
CategoryLookup.php
7.99 KB
Del
OK
Coupons.php
2.86 KB
Del
OK
CouponsMovedTrait.php
2.41 KB
Del
OK
CustomerEffortScoreTracks.php
17.65 KB
Del
OK
EmailImprovements
-
Del
OK
EmailPreview
-
Del
OK
Emails
-
Del
OK
Events.php
8.54 KB
Del
OK
FeaturePlugin.php
6.77 KB
Del
OK
Homescreen.php
8.7 KB
Del
OK
ImportExport
-
Del
OK
Loader.php
19.51 KB
Del
OK
Logging
-
Del
OK
Marketing
-
Del
OK
Marketing.php
6.29 KB
Del
OK
Marketplace.php
3.48 KB
Del
OK
MobileAppBanner.php
956 B
Del
OK
Notes
-
Del
OK
Onboarding
-
Del
OK
OrderMilestoneEasterEgg.php
13.98 KB
Del
OK
Orders
-
Del
OK
ProductForm
-
Del
OK
ProductReviews
-
Del
OK
RemoteFreeExtensions
-
Del
OK
RemoteInboxNotifications.php
932 B
Del
OK
Schedulers
-
Del
OK
Settings
-
Del
OK
Settings.php
16.16 KB
Del
OK
ShippingLabelBanner.php
4.67 KB
Del
OK
ShippingLabelBannerDisplayRules.php
3.63 KB
Del
OK
SiteHealth.php
25.3 KB
Del
OK
Suggestions
-
Del
OK
Survey.php
768 B
Del
OK
SystemStatusReport.php
5.85 KB
Del
OK
TaxSettingsRecommendations.php
3.56 KB
Del
OK
Translations.php
11.66 KB
Del
OK
WCAdminAssets.php
17.53 KB
Del
OK
WCAdminSharedSettings.php
2.08 KB
Del
OK
WCAdminUser.php
5.26 KB
Del
OK
WCPayPromotion
-
Del
OK
WcPayWelcomePage.php
6.33 KB
Del
OK
Edit: CouponsMovedTrait.php
<?php /** * A Trait to help with managing the legacy coupon menu. */ namespace Automattic\WooCommerce\Internal\Admin; use Automattic\WooCommerce\Admin\Features\Features; /** * CouponsMovedTrait trait. */ trait CouponsMovedTrait { /** * The GET query key for the legacy menu. * * @var string */ protected static $query_key = 'legacy_coupon_menu'; /** * The key for storing an option in the DB. * * @var string */ protected static $option_key = 'wc_admin_show_legacy_coupon_menu'; /** * Get the URL for the legacy coupon management. * * @return string The unescaped URL for the legacy coupon management page. */ protected static function get_legacy_coupon_url() { return self::get_coupon_url( [ self::$query_key => true ] ); } /** * Get the URL for the coupon management page. * * @param array $args Additional URL query arguments. * * @return string */ protected static function get_coupon_url( $args = [] ) { $args = array_merge( [ 'post_type' => 'shop_coupon', ], $args ); return add_query_arg( $args, admin_url( 'edit.php' ) ); } /** * Get the new URL for managing coupons. * * @param string $page The management page. * * @return string */ protected static function get_management_url( $page ) { $path = ''; switch ( $page ) { case 'coupon': case 'coupons': return self::get_coupon_url(); case 'marketing': $path = self::get_marketing_path(); break; } return "wc-admin&path={$path}"; } /** * Get the WC Admin path for the marking page. * * @return string */ protected static function get_marketing_path() { return '/marketing/overview'; } /** * Whether we should display the legacy coupon menu item. * * @return bool */ protected static function should_display_legacy_menu() { /** * Filter to determine whether to display the legacy coupon menu item. * * @since 10.5.0 * * @param bool $display Whether the menu should be displayed or not. * @return bool */ return apply_filters( 'wc_admin_show_legacy_coupon_menu', ! Features::is_enabled( 'navigation' ) ); } /** * Set whether we should display the legacy coupon menu item. * * @deprecated 10.5.0 No longer in use. * * @param bool $display Whether the menu should be displayed or not. */ protected static function display_legacy_menu( $display = false ) { update_option( self::$option_key, $display ? 1 : 0 ); } }
Save