diff --git a/app/TGMPA.php b/app/TGMPA.php index c0f115f..9a42ed8 100644 --- a/app/TGMPA.php +++ b/app/TGMPA.php @@ -29,7 +29,7 @@ public function register_required_plugins() { 'slug' => 'carbon-fields', // The plugin slug (typically the folder name). 'source' => 'https://carbonfields.net/zip/latest/', // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. - 'version' => '2.1.0', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. + 'version' => self::$config->get( 'dependencies/carbon_fields' ), // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => true // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. )