Changeset 3464031
- Timestamp:
- 02/18/2026 07:57:29 AM (7 weeks ago)
- Location:
- ghl-wizard
- Files:
-
- 78 added
- 6 edited
-
tags/2.1.3 (added)
-
tags/2.1.3/.gitignore (added)
-
tags/2.1.3/api (added)
-
tags/2.1.3/api/apis.php (added)
-
tags/2.1.3/api/contacts.php (added)
-
tags/2.1.3/api/get-associations.php (added)
-
tags/2.1.3/api/get-campaigns.php (added)
-
tags/2.1.3/api/get-custom-fields.php (added)
-
tags/2.1.3/api/get-custom-values.php (added)
-
tags/2.1.3/api/get-tags.php (added)
-
tags/2.1.3/api/get-token.php (added)
-
tags/2.1.3/api/get-workflows.php (added)
-
tags/2.1.3/build (added)
-
tags/2.1.3/build/images (added)
-
tags/2.1.3/build/images/bfcm.582d01b0.gif (added)
-
tags/2.1.3/build/images/cw-logo.c88ab71d.png (added)
-
tags/2.1.3/build/index.asset.php (added)
-
tags/2.1.3/build/index.css (added)
-
tags/2.1.3/build/index.js (added)
-
tags/2.1.3/css (added)
-
tags/2.1.3/css/admin-styles.css (added)
-
tags/2.1.3/css/select2.min.css (added)
-
tags/2.1.3/css/styles.css (added)
-
tags/2.1.3/ghl-wizard.php (added)
-
tags/2.1.3/go-pro.svg (added)
-
tags/2.1.3/images (added)
-
tags/2.1.3/images/50-off.png (added)
-
tags/2.1.3/images/apply-tags.png (added)
-
tags/2.1.3/images/ghl-bw.png (added)
-
tags/2.1.3/images/ghl-large-bw.png (added)
-
tags/2.1.3/images/ghl-large.png (added)
-
tags/2.1.3/images/ghl.png (added)
-
tags/2.1.3/images/go-pro.svg (added)
-
tags/2.1.3/images/logo-star-icon.svg (added)
-
tags/2.1.3/images/power-up.png (added)
-
tags/2.1.3/inc (added)
-
tags/2.1.3/inc/content-protection.php (added)
-
tags/2.1.3/inc/elementor (added)
-
tags/2.1.3/inc/elementor.php (added)
-
tags/2.1.3/inc/elementor/restricted-post-widget.php (added)
-
tags/2.1.3/inc/filters.php (added)
-
tags/2.1.3/inc/includes.php (added)
-
tags/2.1.3/inc/membership-api.php (added)
-
tags/2.1.3/inc/membership-page.php (added)
-
tags/2.1.3/inc/metaboxes.php (added)
-
tags/2.1.3/inc/options-page.php (added)
-
tags/2.1.3/inc/power-up.php (added)
-
tags/2.1.3/inc/product-page-settings.php (added)
-
tags/2.1.3/inc/rest-api.php (added)
-
tags/2.1.3/inc/settings-form.php (added)
-
tags/2.1.3/inc/settings-page.php (added)
-
tags/2.1.3/inc/shortcodes.php (added)
-
tags/2.1.3/inc/support-page.php (added)
-
tags/2.1.3/inc/surecart.php (added)
-
tags/2.1.3/inc/utility.php (added)
-
tags/2.1.3/inc/woo.php (added)
-
tags/2.1.3/inc/wp_user.php (added)
-
tags/2.1.3/js (added)
-
tags/2.1.3/js/admin-scripts.js (added)
-
tags/2.1.3/js/autologin.js (added)
-
tags/2.1.3/js/scripts.js (added)
-
tags/2.1.3/js/select2.min.js (added)
-
tags/2.1.3/lib (added)
-
tags/2.1.3/lib/client (added)
-
tags/2.1.3/lib/client/.editorconfig (added)
-
tags/2.1.3/lib/client/.gitignore (added)
-
tags/2.1.3/lib/client/.php-cs-fixer.dist.php (added)
-
tags/2.1.3/lib/client/composer.json (added)
-
tags/2.1.3/lib/client/composer.lock (added)
-
tags/2.1.3/lib/client/phpcs.xml.dist (added)
-
tags/2.1.3/lib/client/readme.md (added)
-
tags/2.1.3/lib/client/src (added)
-
tags/2.1.3/lib/client/src/Client.php (added)
-
tags/2.1.3/lib/client/src/Insights.php (added)
-
tags/2.1.3/lib/client/src/License.php (added)
-
tags/2.1.3/logo-star-icon.svg (added)
-
tags/2.1.3/readme.txt (added)
-
tags/2.1.3/uninstall.php (added)
-
trunk/api/get-token.php (modified) (1 diff)
-
trunk/ghl-wizard.php (modified) (1 diff)
-
trunk/inc/content-protection.php (modified) (3 diffs)
-
trunk/inc/filters.php (modified) (2 diffs)
-
trunk/inc/metaboxes.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ghl-wizard/trunk/api/get-token.php
r3400822 r3464031 7 7 8 8 if ( ! str_contains( $referrer, 'gohighlevel') ) { 9 return ''; 9 return; 10 } 11 12 if ( ! current_user_can( 'manage_options' ) ) { 13 return; 10 14 } 11 15 -
ghl-wizard/trunk/ghl-wizard.php
r3456358 r3464031 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: 2.1. 27 * Version: 2.1.3 8 8 * Author: Better Wizard 9 9 * Author URI: https://connectorwizard.app/ -
ghl-wizard/trunk/inc/content-protection.php
r3392946 r3464031 267 267 // } 268 268 269 if ( wp_is_serving_rest_request() || wp_doing_ajax() ) { 270 wp_send_json_error( 271 [ 272 'code' => 'no_access', 273 'message' => 'You do not have permission to access this content.', 274 ], 275 403 276 ); 277 } 278 269 279 $default_no_access_redirect_to = get_option( 'default_no_access_redirect_to' ); 270 280 $post_redirect_to = get_post_meta($post_id, 'hlwpw_no_access_redirect_to', true); … … 575 585 $learndash_course_ids = get_posts(array( 576 586 'numberposts' => -1, 577 'post_type' => 'sfwd-courses',587 'post_type' => array( 'sfwd-courses', 'groups' ), 578 588 'fields' => 'ids', 579 589 'meta_query' => array( … … 609 619 } 610 620 } 611 ld_update_course_access( $user_id, $ld_id, $should_enroll ); 621 622 $post_type = get_post_type( $ld_id ); 623 624 if ( $post_type === 'sfwd-courses' ) { 625 ld_update_course_access( $user_id, $ld_id, $should_enroll ); 626 } elseif ( $post_type === 'groups' ) { 627 ld_update_group_access( $user_id, $ld_id, $should_enroll ); 628 } 612 629 } 613 630 } -
ghl-wizard/trunk/inc/filters.php
r3430533 r3464031 22 22 */ 23 23 function lcw_redirect_user_after_login() { 24 25 // Skip if in admin or REST/AJAX request 26 if ( is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 27 return; 28 } 29 24 30 if ( current_user_can( 'manage_options' ) ) { 25 31 return; 26 32 } 33 27 34 $is_login_redirect_enabled = get_option( 'lcw_enable_login_redirect' ); 28 35 if ( ! empty( $is_login_redirect_enabled ) ) { … … 39 46 */ 40 47 function lcw_redirect_user_after_logout() { 48 49 // Skip if in admin or REST/AJAX request 50 if ( is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 51 return; 52 } 53 41 54 $is_logout_redirect_enabled = get_option( 'lcw_enable_logout_redirect' ); 42 55 if ( ! empty( $is_logout_redirect_enabled ) ) { -
ghl-wizard/trunk/inc/metaboxes.php
r3392946 r3464031 231 231 232 232 // LearnDash auto enrollment tags 233 if ( get_post_type() == 'sfwd-courses' ) {233 if ( get_post_type() == 'sfwd-courses' || get_post_type() == 'groups' ) { 234 234 $metabox_html .= "<p>"; 235 235 $metabox_html .= "<label for='lcw_ld_auto_enrollment_tags'>"; -
ghl-wizard/trunk/readme.txt
r3456358 r3464031 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 2.1. 28 Stable tag: 2.1.3 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 190 190 191 191 == 🎓 LearnDash Integration == 192 - Automatically enroll users in LearnDash courses based on their access to specific courses or content. 193 - Remove users from courses when their access is revoked, ensuring they no longer have access to the course content. 194 - Enhance the learning experience by dynamically managing course enrollment based on user access levels. 192 193 - Automatically enroll users in LearnDash courses based on contact tags. 194 - Remove users from courses when the specific contact tags are removed. 195 - Automatically enroll users in and remove them from LearnDash groups based on contact tags. 195 196 196 197 == 🖌️ Elementor Page Builder Integration == … … 218 219 219 220 == Changelog == 221 222 = 2.1.2 - 08 Feb 2026 = 223 * Auto Enrollment to LearnDash groups by contact tags 224 * REST access modified for the redirection 220 225 221 226 = 2.1.2 - 08 Feb 2026 =
Note: See TracChangeset
for help on using the changeset viewer.