Skip to content

Commit

Permalink
Merge pull request #6 from newfold-labs/Press-2-1190-Refactor-Plugins
Browse files Browse the repository at this point in the history
Refactor Plugins Installer
  • Loading branch information
officiallygod authored Oct 20, 2023
2 parents f5e7900 + 2a1d5a1 commit 145119e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 55 deletions.
1 change: 1 addition & 0 deletions includes/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ final class Options {
'wc_taxes_enabled' => 'wc_connect_taxes_enabled',
'wc_calc_taxes' => 'woocommerce_calc_taxes',
'wc_no_sales_tax' => 'woocommerce_no_sales_tax',
'filter_active_plugins' => 'filter_active_plugins',
);

/**
Expand Down
62 changes: 31 additions & 31 deletions includes/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,112 +22,112 @@ final class Plugins {
'default' => array(
array(
'slug' => 'nfd_slug_endurance_page_cache',
'activate' => false,
'activate' => true,
'priority' => 240,
),
array(
'slug' => 'jetpack',
'activate' => false,
'activate' => true,
'priority' => 220,
),
array(
'slug' => 'wordpress-seo',
'activate' => false,
'activate' => true,
'priority' => 200,
),
array(
'slug' => 'wpforms-lite',
'activate' => false,
'activate' => true,
'priority' => 180,
),
array(
'slug' => 'google-analytics-for-wordpress',
'activate' => false,
'activate' => true,
'priority' => 160,
),
array(
'slug' => 'optinmonster',
'activate' => false,
'activate' => true,
'priority' => 140,
),
),
'ecommerce' => array(
'default' => array(
array(
'slug' => 'woocommerce',
'activate' => false,
'activate' => true,
'priority' => 260,
),
),
'bluehost' => array(
'wc_standard' => array(
array(
'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page',
'activate' => false,
'activate' => true,
'priority' => 257,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_gift_cards',
'activate' => false,
'activate' => true,
'priority' => 100,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_wishlist',
'activate' => false,
'activate' => true,
'priority' => 80,
),
array(
'slug' => 'nfd_slug_yith_shippo_shippings_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 259,
),
array(
'slug' => 'nfd_slug_yith_paypal_payments_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 258,
),
),
'wc_premium' => array(
array(
'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page',
'activate' => false,
'activate' => true,
'priority' => 257,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_gift_cards',
'activate' => false,
'activate' => true,
'priority' => 100,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_wishlist',
'activate' => false,
'activate' => true,
'priority' => 80,
),
array(
'slug' => 'nfd_slug_yith_shippo_shippings_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 259,
),
array(
'slug' => 'nfd_slug_yith_paypal_payments_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 258,
),
array(
'slug' => 'nfd_slug_ecomdash_wordpress_plugin',
'activate' => false,
'activate' => true,
'priority' => 20,
),
),
'wc_priority' => array(
array(
'slug' => 'nfd_slug_yith_shippo_shippings_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 259,
),
array(
'slug' => 'nfd_slug_yith_paypal_payments_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 258,
),
),
Expand All @@ -136,49 +136,49 @@ final class Plugins {
'wc_standard' => array(
array(
'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page',
'activate' => false,
'activate' => true,
'priority' => 257,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_gift_cards',
'activate' => false,
'activate' => true,
'priority' => 100,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_wishlist',
'activate' => false,
'activate' => true,
'priority' => 80,
),
array(
'slug' => 'nfd_slug_woo_razorpay',
'activate' => false,
'activate' => true,
'priority' => 258,
),
),
'wc_premium' => array(
array(
'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page',
'activate' => false,
'activate' => true,
'priority' => 257,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_gift_cards',
'activate' => false,
'activate' => true,
'priority' => 100,
),
array(
'slug' => 'nfd_slug_yith_woocommerce_wishlist',
'activate' => false,
'activate' => true,
'priority' => 80,
),
array(
'slug' => 'nfd_slug_woo_razorpay',
'activate' => false,
'activate' => true,
'priority' => 258,
),
array(
'slug' => 'nfd_slug_ecomdash_wordpress_plugin',
'activate' => false,
'activate' => true,
'priority' => 20,
),
),
Expand All @@ -188,12 +188,12 @@ final class Plugins {
'wc_priority' => array(
array(
'slug' => 'nfd_slug_yith_shippo_shippings_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 259,
),
array(
'slug' => 'nfd_slug_yith_paypal_payments_for_woocommerce',
'activate' => false,
'activate' => true,
'priority' => 258,
),
),
Expand Down
Loading

0 comments on commit 145119e

Please sign in to comment.