Changeset 3233112
- Timestamp:
- 02/01/2025 01:53:59 PM (14 months ago)
- Location:
- ghl-wizard
- Files:
-
- 63 added
- 4 edited
-
tags/1.2.12 (added)
-
tags/1.2.12/.gitignore (added)
-
tags/1.2.12/api (added)
-
tags/1.2.12/api/apis.php (added)
-
tags/1.2.12/api/contacts.php (added)
-
tags/1.2.12/api/get-campaigns.php (added)
-
tags/1.2.12/api/get-custom-fields.php (added)
-
tags/1.2.12/api/get-custom-values.php (added)
-
tags/1.2.12/api/get-tags.php (added)
-
tags/1.2.12/api/get-token.php (added)
-
tags/1.2.12/api/get-workflows.php (added)
-
tags/1.2.12/css (added)
-
tags/1.2.12/css/admin-styles.css (added)
-
tags/1.2.12/css/select2.min.css (added)
-
tags/1.2.12/css/styles.css (added)
-
tags/1.2.12/ghl-wizard.php (added)
-
tags/1.2.12/images (added)
-
tags/1.2.12/images/50-off.png (added)
-
tags/1.2.12/images/apply-tags.png (added)
-
tags/1.2.12/images/ghl-bw.png (added)
-
tags/1.2.12/images/ghl-large-bw.png (added)
-
tags/1.2.12/images/ghl-large.png (added)
-
tags/1.2.12/images/ghl.png (added)
-
tags/1.2.12/images/power-up.png (added)
-
tags/1.2.12/inc (added)
-
tags/1.2.12/inc/content-protection.php (added)
-
tags/1.2.12/inc/elementor (added)
-
tags/1.2.12/inc/elementor/restricted-post-widget.php (added)
-
tags/1.2.12/inc/includes.php (added)
-
tags/1.2.12/inc/membership-page.php (added)
-
tags/1.2.12/inc/metaboxes.php (added)
-
tags/1.2.12/inc/options-page.php (added)
-
tags/1.2.12/inc/power-up.php (added)
-
tags/1.2.12/inc/product-page-settings.php (added)
-
tags/1.2.12/inc/settings-form.php (added)
-
tags/1.2.12/inc/settings-page.php (added)
-
tags/1.2.12/inc/shortcodes.php (added)
-
tags/1.2.12/inc/support-page.php (added)
-
tags/1.2.12/inc/surecart.php (added)
-
tags/1.2.12/inc/utility.php (added)
-
tags/1.2.12/inc/woo.php (added)
-
tags/1.2.12/inc/wp_user.php (added)
-
tags/1.2.12/js (added)
-
tags/1.2.12/js/admin-scripts.js (added)
-
tags/1.2.12/js/scripts.js (added)
-
tags/1.2.12/js/select2.min.js (added)
-
tags/1.2.12/lib (added)
-
tags/1.2.12/lib/client (added)
-
tags/1.2.12/lib/client/.editorconfig (added)
-
tags/1.2.12/lib/client/.gitignore (added)
-
tags/1.2.12/lib/client/.php-cs-fixer.dist.php (added)
-
tags/1.2.12/lib/client/composer.json (added)
-
tags/1.2.12/lib/client/composer.lock (added)
-
tags/1.2.12/lib/client/phpcs.xml.dist (added)
-
tags/1.2.12/lib/client/readme.md (added)
-
tags/1.2.12/lib/client/src (added)
-
tags/1.2.12/lib/client/src/Client.php (added)
-
tags/1.2.12/lib/client/src/Insights.php (added)
-
tags/1.2.12/lib/client/src/License.php (added)
-
tags/1.2.12/readme.txt (added)
-
tags/1.2.12/uninstall.php (added)
-
trunk/ghl-wizard.php (modified) (1 diff)
-
trunk/inc/elementor (added)
-
trunk/inc/elementor/restricted-post-widget.php (added)
-
trunk/inc/utility.php (modified) (1 diff)
-
trunk/inc/wp_user.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ghl-wizard/trunk/ghl-wizard.php
r3219087 r3233112 5 5 * Plugin URI: https://betterwizard.com/lead-connector-wizard/ 6 6 * Description: Connect WordPress with the popular LeadConnector CRM(HighLevel) and combine the power of automation and excellent user experience. Including memberships, content protection, WooCommerce automation, custom fields & many more... 7 * Version: 1.2.1 17 * Version: 1.2.12 8 8 * Author: Better Wizard 9 9 * Author URI: https://betterwizard.com/ -
ghl-wizard/trunk/inc/utility.php
r3219087 r3233112 38 38 if (!isset($data['sc_activation_id'])) { 39 39 set_transient($autologin_error_transient_key, __('This is a premium feature, please contact with your administrator', 'ghl-wizard')); 40 wp_redirect(home_url()); 41 exit; 42 } 43 44 //restrict it for admin users 45 if( user_can( $user->ID, 'manage_options' ) ){ 46 set_transient($autologin_error_transient_key, __('Admin is not allowed to auto logged in', 'ghl-wizard')); 40 47 wp_redirect(home_url()); 41 48 exit; -
ghl-wizard/trunk/inc/wp_user.php
r3211246 r3233112 213 213 } 214 214 215 $data = get_option( 'leadconnectorwizardpro_license_options' );216 217 215 $contact_email = $contact_data->email; 218 216 $first_name = $contact_data->first_name; 219 217 $last_name = $contact_data->last_name; 218 $lcw_create_wp_user = isset( $contact_data->customData->lcw_create_wp_user ) ? $contact_data->customData->lcw_create_wp_user : 0; 220 219 $need_to_update = isset( $contact_data->customData->lcw_contact_update ) ? $contact_data->customData->lcw_contact_update : 0; 221 220 $lcw_add_wp_user_role = isset( $contact_data->customData->lcw_add_wp_user_role ) ? $contact_data->customData->lcw_add_wp_user_role : false; 222 221 $lcw_remove_wp_user_role= isset( $contact_data->customData->lcw_remove_wp_user_role ) ? $contact_data->customData->lcw_remove_wp_user_role : false; 222 223 // unblock other webhooks other than LC Wizard 224 if ( $lcw_create_wp_user === 1 || $need_to_update === 1 || !empty( $lcw_add_wp_user_role ) || !empty( $lcw_remove_wp_user_role ) ){ 225 // go further 226 } else { 227 return; 228 } 229 230 $data = get_option( 'leadconnectorwizardpro_license_options' ); 223 231 224 232 // check if user exist & get user id -
ghl-wizard/trunk/readme.txt
r3219087 r3233112 152 152 == Changelog == 153 153 154 = 1.2.12 = 155 * Bug Fix: Disabled autologin feature for Admin 156 * Bug Fix: Unblocked other webhooks other than LC Wizard. 157 154 158 = 1.2.11 = 155 159 * Feature Added: Auto login & create new WordPress user from workflow.
Note: See TracChangeset
for help on using the changeset viewer.