Skip to content

Commit

Permalink
v2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed May 17, 2024
1 parent 87468de commit d7d8b60
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 87 deletions.
4 changes: 2 additions & 2 deletions email-verification-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Email Verification for WooCommerce
Plugin URI: https://wpfactory.com/item/email-verification-for-woocommerce/
Description: Verify user emails in WooCommerce. Beautifully.
Version: 2.8.0
Version: 2.8.1
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: emails-verification-for-woocommerce
Expand Down Expand Up @@ -62,7 +62,7 @@ final class Alg_WC_Email_Verification {
* @var string
* @since 1.0.0
*/
public $version = '2.8.0';
public $version = '2.8.1';

/**
* @var Alg_WC_Email_Verification The single instance of the class
Expand Down
29 changes: 26 additions & 3 deletions includes/settings/class-alg-wc-ev-settings-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Email Verification for WooCommerce - Compatibility Section Settings.
*
* @version 2.7.6
* @version 2.8.1
* @since 2.1.3
* @author WPFactory
*/
Expand Down Expand Up @@ -43,15 +43,15 @@ function get_villatheme_email_customizer_placeholders() {
/**
* get_settings.
*
* @version 2.7.6
* @version 2.8.1
* @since 2.1.3
* @todo (maybe) remove `alg_wc_ev_prevent_login_after_checkout_notice` (i.e. make it always enabled)
*/
function get_settings() {
$general = array(
array(
'title' => __( 'Compatibility', 'emails-verification-for-woocommerce' ),
'desc' => __( 'Compatibility with third party plugins or solutions.', 'emails-verification-for-woocommerce' ) . '<br />' .
'desc' => __( 'Compatibility with third party plugins or solutions.', 'emails-verification-for-woocommerce' ) .' '.
__( 'If you have issues with compatibility settings try to change these other options:', 'emails-verification-for-woocommerce' ) . '<br /><br />' .
alg_wc_ev_array_to_string( array(
__( 'Advanced > Block auth cookies', 'emails-verification-for-woocommerce' ),
Expand Down Expand Up @@ -126,6 +126,28 @@ function get_settings() {
),
);

$wp_social_login_opts = array(
array(
'title' => __( 'Wp Social Login and Register Social Counter', 'emails-verification-for-woocommerce' ),
'type' => 'title',
'desc' => sprintf( __( 'Compatibility with the %s plugin.', 'emails-verification-for-woocommerce' ), sprintf( '<a href="%s" target="_blank">%s</a>', 'https://wordpress.org/plugins/wp-social/', __( 'Wp Social Login', 'emails-verification-for-woocommerce' ) ) ),
'id' => 'alg_wc_ev_compatibility_wslu_opts',
),
array(
'title' => __( 'Verify on signup', 'emails-verification-for-woocommerce' ),
'desc' => __( 'Verify user on WP Social sign up', 'emails-verification-for-woocommerce' ),
'desc_tip' => __( 'Prevents verification email sending on WP Social sign up.', 'emails-verification-for-woocommerce' ),
'id' => 'alg_wc_ev_wslu_verify_user_on_sign_up',
'default' => 'no',
'type' => 'checkbox',
'custom_attributes' => apply_filters( 'alg_wc_ev_settings', array( 'disabled' => 'disabled' ) ),
),
array(
'type' => 'sectionend',
'id' => 'alg_wc_ev_compatibility_wslu_opts',
),
);

$xoo_login_signup_popup_opts = array(
array(
'title' => __( 'Login/Signup Popup ( Inline Form + Woocommerce )', 'emails-verification-for-woocommerce' ),
Expand Down Expand Up @@ -333,6 +355,7 @@ function get_settings() {
);
return array_merge(
$general,
$wp_social_login_opts,
$xoo_login_signup_popup_opts,
$polylang_opts,
$elementor_essential_addons_opts,
Expand Down
Loading

0 comments on commit d7d8b60

Please sign in to comment.