Plugin Directory

Changeset 3477092


Ignore:
Timestamp:
03/07/2026 03:21:20 PM (4 weeks ago)
Author:
samybaxy
Message:

fix: load WooCommerce extensions and user-switching on my-account page

Location:
samybaxy-hyperdrive
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • samybaxy-hyperdrive/tags/6.0.2/mu-loader/shypdr-mu-loader.php

    r3477084 r3477092  
    323323            $detected[] = 'fluent-crm';
    324324            $detected[] = 'fluentcrm-pro';
     325            $detected[] = 'user-switching'; // Lightweight utility, always load for logged-in users
    325326        }
    326327
     
    392393                    $detected[] = 'restrict-content-pro';
    393394                }
     395            }
     396
     397            // My Account page: Load account-related WooCommerce extensions
     398            static $account_keywords = ['my-account'];
     399            if (self::uri_contains_keyword($uri, $slug, $parent_slug, $account_keywords)) {
     400                $detected[] = 'woocommerce-subscriptions';
     401                $detected[] = 'woocommerce-smart-coupons';
     402                $detected[] = 'woocommerce-memberships';
     403                $detected[] = 'user-switching';
    394404            }
    395405
  • samybaxy-hyperdrive/trunk/mu-loader/shypdr-mu-loader.php

    r3477081 r3477092  
    323323            $detected[] = 'fluent-crm';
    324324            $detected[] = 'fluentcrm-pro';
     325            $detected[] = 'user-switching'; // Lightweight utility, always load for logged-in users
    325326        }
    326327
     
    392393                    $detected[] = 'restrict-content-pro';
    393394                }
     395            }
     396
     397            // My Account page: Load account-related WooCommerce extensions
     398            static $account_keywords = ['my-account'];
     399            if (self::uri_contains_keyword($uri, $slug, $parent_slug, $account_keywords)) {
     400                $detected[] = 'woocommerce-subscriptions';
     401                $detected[] = 'woocommerce-smart-coupons';
     402                $detected[] = 'woocommerce-memberships';
     403                $detected[] = 'user-switching';
    394404            }
    395405
Note: See TracChangeset for help on using the changeset viewer.