/
home
/
suroeste
/
public_html
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
Admin
/
/home/suroeste/public_html/wp-content/plugins/woocommerce/src/Internal/Admin
mkdir
upload
Name
Size
Mode
Actions
BlockTemplates/
-
0755
rm
Logging/
-
0755
rm
Marketing/
-
0755
rm
Notes/
-
0755
rm
Onboarding/
-
0755
rm
Orders/
-
0755
rm
ProductForm/
-
0755
rm
ProductReviews/
-
0755
rm
RemoteFreeExtensions/
-
0755
rm
Schedulers/
-
0755
rm
WCPayPromotion/
-
0755
rm
ActivityPanels.php
1616
0644
edit
dl
rm
Analytics.php
9154
0644
edit
dl
rm
CategoryLookup.php
8180
0644
edit
dl
rm
Coupons.php
3031
0644
edit
dl
rm
CouponsMovedTrait.php
2203
0644
edit
dl
rm
CustomerEffortScoreTracks.php
17595
0644
edit
dl
rm
Events.php
9114
0644
edit
dl
rm
FeaturePlugin.php
6666
0644
edit
dl
rm
Homescreen.php
8893
0644
edit
dl
rm
Loader.php
20440
0644
edit
dl
rm
Marketing.php
6405
0644
edit
dl
rm
Marketplace.php
5159
0644
edit
dl
rm
MobileAppBanner.php
956
0644
edit
dl
rm
RemoteInboxNotifications.php
932
0644
edit
dl
rm
Settings.php
13418
0644
edit
dl
rm
SettingsNavigationFeature.php
4433
0644
edit
dl
rm
ShippingLabelBanner.php
4096
0644
edit
dl
rm
ShippingLabelBannerDisplayRules.php
5302
0644
edit
dl
rm
SiteHealth.php
2370
0644
edit
dl
rm
Survey.php
768
0644
edit
dl
rm
SystemStatusReport.php
5983
0644
edit
dl
rm
Translations.php
12241
0644
edit
dl
rm
WCAdminAssets.php
16757
0644
edit
dl
rm
WCAdminSharedSettings.php
1532
0644
edit
dl
rm
WCAdminUser.php
4175
0644
edit
dl
rm
WcPayWelcomePage.php
15927
0644
edit
dl
rm
Edit:
/home/suroeste/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CouponsMovedTrait.php
(2203B)
<?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() { return ( get_option( self::$option_key, 1 ) && ! Features::is_enabled( 'navigation' ) ); } /** * Set whether we should display the legacy coupon menu item. * * @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
cmd:
run