Plugin Directory

Changeset 3063174


Ignore:
Timestamp:
04/03/2024 04:35:39 AM (2 years ago)
Author:
eberwp
Message:

update new version of 4.0

Location:
eber/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • eber/trunk/index.php

    r3062188 r3063174  
    55Description: Eber is a smart member system comes with comprehensive loyalty & rewards system, marketing and analytic tool.
    66Author: Eber
    7 Version: 3.9
     7Version: 4.0
    88Author URI: https://eber.co
    99License: GPLv2 or later
  • eber/trunk/init/activate.php

    r2854506 r3063174  
    3737            delete_option('exclude_coupon');
    3838            delete_option('widget_new');
     39            delete_option('instant_sync');
     40            delete_option('eber_custom_field');
    3941        }
    4042    }
  • eber/trunk/init/frontend.php

    r3062188 r3063174  
    261261        $user = get_user_by('id',$user_id);
    262262        $sync = get_option('eber_sync',false);
     263        $instant_sync = get_option('instant_sync',false);
    263264        $eber_welcome_email = get_option('eber_welcome_email',false);
    264265        $notify = 0;
    265266        if($eber_welcome_email)
    266267            $notify = 1;
    267         if($sync)
     268        if($sync && $instant_sync)
    268269        {
    269270            $eber_hash_key = get_option('eber_hash_key','');
  • eber/trunk/init/menu.php

    r3039329 r3063174  
    8888            $issue_point_when  = get_option('issue_point_when','processing');
    8989            $eber_welcome_email = get_option('eber_welcome_email',false);
     90            $instant_sync = get_option('instant_sync',false);
    9091            $exclude_tax = get_option('exclude_tax',true);
    9192            $exclude_shipping = get_option('exclude_shipping',true);
     
    115116                $eber_api_enable = (isset($_POST['eber_api_enable']));
    116117                $eber_custom_field = (isset($_POST['eber_custom_field']));
     118                $instant_sync = (isset($_POST['instant_sync']));
    117119                $custom_field = $_POST['custom_field'];
    118120                $eber_default_phone_code = sanitize_text_field($_POST['eber_default_phone_code']);
     
    273275                                {
    274276                                    update_option('eber_custom_field_data',$_POST['custom_field']);
     277                                }
     278                                if(isset($_POST['instant_sync']))
     279                                {
     280                                    update_option('instant_sync',true);
     281                                }
     282                                else
     283                                {
     284                                    update_option('instant_sync',false);
    275285                                }
    276286
  • eber/trunk/layout/index.php

    r3043092 r3063174  
    9191        </fieldset></td>
    9292</tr>
     93<tr style="display:none;">
     94    <th scope="row">&nbsp;</th>
     95    <td> <fieldset><legend class="screen-reader-text"><span>Membership</span></legend><label for="users_can_register_instant">
     96                <input name="instant_sync" type="checkbox" id="instant_sync" value="1" <?php echo ($instant_sync)?'checked':'';?>>
     97                Sync Instantly ?</label>
     98        </fieldset></td>
     99</tr>
     100
    93101<tr>
    94102    <th scope="row">&nbsp;</th>
  • eber/trunk/readme.txt

    r3062188 r3063174  
    106106= 3.9 =
    107107fixed duplicate in sync user
     108= 4.0 =
     109option to stop instant sync user
    108110
    109111
Note: See TracChangeset for help on using the changeset viewer.