/**
  * Register public scripts to use later
  *
  * @since     1.0.0
  */
 public function register_public_scripts()
 {
     //if( sc_sub_has_shortcode() ) {
     wp_register_script(Stripe_Subscriptions::get_plugin_slug() . '-public', SC_SUB_DIR_URL . 'assets/js/public-main' . $this->min . '.js', array('jquery'), Stripe_Subscriptions::get_plugin_version(), true);
     wp_localize_script(Stripe_Subscriptions::get_plugin_slug() . '-public', 'sc_sub', array('ajaxurl' => admin_url('admin-ajax.php')), Stripe_Subscriptions::get_plugin_version());
     //}
 }
 public function run_all_upgrades()
 {
     global $sc_options;
     // If this option does not exist yet then this is upgrading from < 1.2.0
     $version = $sc_options->get_setting_value('sc_sub_version');
     if (null !== $version && null === $sc_options->get_setting_value('sub_upgrade_has_run')) {
         $this->sc_v120_upgrade();
     }
     $new_version = Stripe_Subscriptions::get_plugin_version();
     $sc_options->add_setting('sc_sub_version', $new_version);
 }