/**
  * Run upgrade functions
  *
  * If DCL is upgraded, we may need to perform few updations in db
  * This function is used for that.
  * @since	10.0.2
  * @uses	get_option()	To get the activation redirect option from db.
  * @return	void.
  */
 public function dcl_upgrade_if_new()
 {
     if (!get_option('dcl_version_no') || get_option('dcl_version_no') < DCL_VERSION) {
         if (class_exists('DCL_Activator')) {
             DCL_Activator::activate();
         }
         update_option('dcl_version_no', DCL_VERSION);
     }
 }
/**
 * The code that runs during plugin activation.
 * This action is documented in includes/class-dcl-activator.php
 */
function activate_dcl()
{
    require_once plugin_dir_path(__FILE__) . 'includes/class-dcl-activator.php';
    DCL_Activator::activate();
}