Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BrianHenryIE/27296834543011dbb13dafffed03df2c to your computer and use it in GitHub Desktop.
Save BrianHenryIE/27296834543011dbb13dafffed03df2c to your computer and use it in GitHub Desktop.
diff --git a/sb-woocommerce-email-verification.php b/sb-woocommerce-email-verification.php
index c4e504c..7fca8ac 100755
--- a/sb-woocommerce-email-verification.php
+++ b/sb-woocommerce-email-verification.php
@@ -3,7 +3,7 @@
Plugin Name: SB WooCommerce Email Verification
Description: Force customers to verify account before login. Reduce spam users.
Plugin URI: http://codecanyon.net/user/sbthemes/portfolio?ref=sbthemes
- Version: 1.4.1
+ Version: 1.5
Author: SB Themes
Author URI: http://codecanyon.net/user/sbthemes/portfolio?ref=sbthemes
*/
@@ -15,7 +15,7 @@ require_once('admin/sb-admin-panel.php');
class SB_WooCommerce_Email_Verification {
- public $plugin_version = '1.4.1';
+ public $plugin_version = '1.5';
public $db_version = '1.0';
public $plugin_name = 'WooCommerce Email Verification';
public $menu_text = 'WooCommerce Email Verification';
@@ -74,6 +74,11 @@ class SB_WooCommerce_Email_Verification {
wp_enqueue_script('jquery');
wp_enqueue_script('sb-js', $this->plugin_dir_url.'assets/js/sb.js', array(), $this->plugin_version, true );
+ // Add JavaScript only on "Please check your email address to verify account." page
+ if(isset($_GET['registered']) && $_GET['registered'] == 'true' && file_exists( get_stylesheet_directory().'/js/sb-check-email-reminder.js' ) ) {
+ wp_enqueue_script('sb-check-email-reminder', get_stylesheet_directory_uri().'/js/sb-check-email-reminder.js', array(), $this->plugin_version, true );
+ }
+
$settings = $this->sb_admin->get_settings();
$sbwucvobj = array(
'ajax' => admin_url('admin-ajax.php')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment