Skip to content

Commit

Permalink
Update Plugins.php
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Oct 9, 2024
1 parent faad24e commit 86a2f75
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions includes/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,42 +214,6 @@ final class Plugins {
),
);

/**
* Default Premium Yith Plugins Data
*
* @var array
*/
protected static $default_premium_yith_plugins = array(
array(
'slug' => 'nfd_slug_yith_woocommerce_booking',
'activate' => true,
),
array(
'slug' => 'yith-woocommerce-ajax-search',
'activate' => true,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_gift_cards',
'activate' => true,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_wishlist',
'activate' => true,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page',
'activate' => true,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_ajax_product_filter',
'activate' => true,
),
array(
'slug' => 'nfd_slug_wonder_cart',
'activate' => true,
),
);

/**
* Get the list of initial plugins to be installed for a particular hosting plan.
*
Expand All @@ -258,8 +222,6 @@ final class Plugins {
public static function get_init() {
// The Default plugins for all types
$init_list = self::$init_list['default'];
// The Default premium Yith plugins to be installed
$default_premium_yith_plugins = self::$default_premium_yith_plugins;

// The default plugins for Site Capabilities.
if ( isset( self::$init_list['site-capabilities'] ) ) {
Expand All @@ -276,12 +238,6 @@ public static function get_init() {
}
}

if ( isset( $default_premium_yith_plugins ) ) {
foreach ( $default_premium_yith_plugins as $yith_plugin_data ) {
PluginsInstallerService::install_premium_plugin( $yith_plugin_data['slug'], $yith_plugin_data['activate'] );
}
}

$plan_data = Data::current_plan();
$plan_flow = $plan_data['flow'];
if ( $plan_flow && isset( self::$init_list[ $plan_flow ] ) ) {
Expand Down

0 comments on commit 86a2f75

Please sign in to comment.