Skip to content

Commit

Permalink
Merge pull request #445 from publishpress/feature/#440_Disable_Series…
Browse files Browse the repository at this point in the history
…_Free_when_Series_Pro_is_installed

 feature/#440_Disable_Series_Free_when_Series_Pro_is_installed
  • Loading branch information
olatechpro committed Mar 7, 2022
2 parents 01ab63f + 5ce4d17 commit 19fbd65
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions orgSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: PublishPress Series
* Plugin URI: https://publishpress.com/publishpress-series/
* Description: PublishPress Series allows you to group content together into a series. This is ideal for magazines, newspapers, short-story writers, teachers, comic artists, or anyone who writes multiple posts on the same topic.
* Version: 2.7.5
* Version: 2.7.5.tp-1
* Author: PublishPress
* Author URI: https://publishpress.com/
* Text Domain: organize-series
Expand Down Expand Up @@ -59,7 +59,7 @@
register_activation_hook( __FILE__, 'pp_series_core_activation' );

if (!defined('ORG_SERIES_VERSION')) {
define('ORG_SERIES_VERSION', '2.7.5'); //the current version of the plugin
define('ORG_SERIES_VERSION', '2.7.5.tp-1'); //the current version of the plugin
define( 'SERIES_FILE_PATH', __FILE__ );
define( 'SERIES_PATH_URL', plugins_url('', __FILE__).'/' );
define('SERIES_LOC', plugins_url('', __FILE__).'/' ); //the uri of the orgSeries files.
Expand Down Expand Up @@ -108,8 +108,14 @@ function($links, $file)
}

if (defined('PPSERIES_FILE') || $pro_active) {
if(!function_exists('deactivate_plugins')){
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
//deactivate current plugin if pro is active
deactivate_plugins( plugin_basename( __FILE__ ) );
return;
}

define ('PPSERIES_FILE', __FILE__ );
define ('PPSERIES_PATH', plugin_dir_path(__FILE__));
define ('PPSERIES_URL', plugin_dir_url(__FILE__));
Expand Down

0 comments on commit 19fbd65

Please sign in to comment.