Skip to content

Commit

Permalink
Merge pull request #357 from newfold-labs/solutions
Browse files Browse the repository at this point in the history
Solutions
  • Loading branch information
aratidgr8 authored Oct 23, 2024
2 parents af885e2 + 125efbf commit 74482c3
Show file tree
Hide file tree
Showing 18 changed files with 1,426 additions and 503 deletions.
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use function NewfoldLabs\WP\ModuleLoader\register;

define( 'NFD_ECOMMERCE_MODULE_VERSION', '1.3.44' );
define( 'NFD_ECOMMERCE_MODULE_VERSION', '1.4.0' );

if ( function_exists( 'is_admin' ) && is_admin() ) {
$old_woocommerce_module_version = get_option( 'nfd_ecommerce_module_version' );
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '00a9f8f0dd08a3e19f74');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '06f7324e4a155909e837');
554 changes: 309 additions & 245 deletions composer.lock

Large diffs are not rendered by default.

51 changes: 50 additions & 1 deletion includes/Data/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,55 @@ final class Plugins {
),
);

/**
* An associative array of premium plugins with their corresponding admin page URLs and file paths.
*
* @var array<string, array<string, string>> $free_plugins
*/
public static $premium_plugins = array(

//Search Engine Optimization
'wp-seo' => array(
'url' => 'admin.php?page=wpseo_dashboard#top#first-time-configuration',
'file' => 'wordpress-seo/wp-seo.php'
),
//Offer Content Courses
'sensei-lms' => array(
'url' => 'post-new.php?post_type=course',
'file' => 'sensei-lms/sensei-lms.php'
),
//Add An Affiliate Program
'yith-woocommerce-affiliates' => array(
'url' => 'admin.php?page=yith_wcaf_panel&tab=settings&sub_tab=settings-general',
'file' => 'yith-woocommerce-affiliates-premium/init.php'
),
//Setup Bookings
'yith-woocommerce-booking' => array(
'url' => 'edit.php?post_type=yith_booking&yith-plugin-fw-panel-skip-redirect=1',
'file' => 'yith-woocommerce-booking-premium/init.php'
),
//Setup A Loyalty Program
'yith-woocommerce-points-and-rewards' => array(
'url' => 'admin.php?page=yith_woocommerce_points_and_rewards&tab=points&sub_tab=points-standard',
'file' => 'yith-woocommerce-points-and-rewards-premium/init.php'
),
//Setup WishList
'yith-woocommerce-wishlist' => array(
'url' => 'admin.php?page=yith_wcwl_panel&tab=settings&sub_tab=settings-general',
'file' => 'yith-woocommerce-wishlist-premium/init.php'
),
//Enable Product Reviews
'yith-woocommerce-advanced-reviews' => array(
'url' => 'admin.php?page=yith_ywar_panel',
'file' => 'yith-woocommerce-advanced-reviews-premium/init.php'
),
//Create a Sales Campaign
'yith-woocommerce-dynamic-pricing-and-discounts' => array(
'url' => 'edit.php?post_type=ywdpd_discount&yith-plugin-fw-panel-skip-redirect=1',
'file' => 'yith-woocommerce-dynamic-pricing-and-discounts/init.php'
)
);

/**
* An associative array of supported plugins with their corresponding file paths and admin page URLs.
*
Expand Down Expand Up @@ -120,6 +169,6 @@ final class Plugins {
* @return array<string, array<string, string>> A combined array of supported and free plugins.
*/
public static function supported_plugins() {
return array_merge( self::$supported_plugins, self::$free_plugins );
return array_merge( self::$supported_plugins, self::$free_plugins, self::$premium_plugins );
}
}
Loading

0 comments on commit 74482c3

Please sign in to comment.