Changeset 3451273
- Timestamp:
- 02/01/2026 08:17:21 AM (8 weeks ago)
- Location:
- customize-my-account-for-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/3.7.4 (copied) (copied from customize-my-account-for-woocommerce/trunk)
-
tags/3.7.4/customize-my-account-for-woocommerce.php (modified) (2 diffs)
-
tags/3.7.4/include/admin/admin_settings.php (modified) (3 diffs)
-
tags/3.7.4/include/frontend/frontend_functions.php (modified) (1 diff)
-
tags/3.7.4/readme.txt (modified) (1 diff)
-
trunk/customize-my-account-for-woocommerce.php (modified) (2 diffs)
-
trunk/include/admin/admin_settings.php (modified) (3 diffs)
-
trunk/include/frontend/frontend_functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
customize-my-account-for-woocommerce/tags/3.7.4/customize-my-account-for-woocommerce.php
r3451267 r3451273 4 4 Plugin URI: https://sysbasics.com 5 5 Description: Customize My account page. Add/Edit/Remove Endpoints. 6 Version: 3.7. 36 Version: 3.7.4 7 7 Author: SysBasics 8 8 Author URI: https://sysbasics.com … … 164 164 // Don't forget to exit() because wp_redirect doesn't exit automatically 165 165 add_option('wcmamtx_do_activation_redirect', true); 166 167 166 167 168 168 169 169 -
customize-my-account-for-woocommerce/tags/3.7.4/include/admin/admin_settings.php
r3450246 r3451273 470 470 update_option($this->wcmamtx_notices_settings_page,$new_row_values); 471 471 update_option('wcmamtx_flush_rewrite_cache_required',"yes"); 472 473 if ($row_type == 'endpoint') { 474 $allowed_endpoints = get_option("wcmamtx_allowed_endpoint_trial"); 475 476 if (isset($allowed_endpoints) && ($allowed_endpoints > 0)) { 477 $allowed_endpoints = $allowed_endpoints - 1; 478 update_option('wcmamtx_allowed_endpoint_trial',$allowed_endpoints); 479 } 480 } 472 481 } 473 482 … … 1031 1040 <?php wp_nonce_field( 'update-options' ); ?> 1032 1041 <?php settings_fields( $tab ); ?> 1033 <?php do_settings_sections( $tab ); ?> 1042 <?php 1043 do_settings_sections( $tab ); 1044 1045 $allowed_endpoints = get_option("wcmamtx_allowed_endpoint_trial"); 1046 1047 1048 if (isset($allowed_endpoints) && ($allowed_endpoints > 0)) { 1049 $endpoint_button_id = "#wcmamtx_example_modal"; 1050 $endpoint_button_class = ""; 1051 } else { 1052 $endpoint_button_id = "#wcmamtx_example_modal2"; 1053 $endpoint_button_class = "wcmamtx_disabled2"; 1054 } 1055 1056 ?> 1034 1057 1035 1058 <div class="wcmamtx_buttons_section"> … … 1037 1060 <?php if (isset($current_tab) && ($current_tab == "wcmamtx_advanced_settings") && ($current_tab != "wcmamtx_wizard_settings") ) { ?> 1038 1061 <div class="wcmamtx_add_section_div"> 1039 <button type="button" href="#" data-toggle="modal" data-target=" #wcmamtx_example_modal" data-etype="endpoint" id="wcmamtx_add_endpoint" class="btn btn-sm btn-primary wcmamtx_add_group">1062 <button type="button" href="#" data-toggle="modal" data-target="<?php echo $endpoint_button_id; ?>" data-etype="endpoint" id="wcmamtx_add_endpoint" class="btn btn-sm btn-primary wcmamtx_add_group <?php echo $endpoint_button_class; ?>"> 1040 1063 <span class="dashicons dashicons-insert"></span> 1041 1064 <?php echo esc_html__( 'Add Endpoint' ,'customize-my-account-for-woocommerce'); ?> -
customize-my-account-for-woocommerce/tags/3.7.4/include/frontend/frontend_functions.php
r3451230 r3451273 892 892 public function wcmamtx_add_custom_endpoint_page() { 893 893 $wcmamtx_tabs = get_option('wcmamtx_advanced_settings'); 894 add_option('wcmamtx_allowed_endpoint_trial', 02); 894 895 895 896 $core_fields = 'dashboard,orders,downloads,edit-address,edit-account,customer-logout'; -
customize-my-account-for-woocommerce/tags/3.7.4/readme.txt
r3451267 r3451273 7 7 WC Requires at least: 4.0 8 8 Requires PHP: 5.2 9 Stable tag: 3.7. 39 Stable tag: 3.7.4 10 10 Requires Plugins: woocommerce 11 11 License: GPLv2 or later -
customize-my-account-for-woocommerce/trunk/customize-my-account-for-woocommerce.php
r3451267 r3451273 4 4 Plugin URI: https://sysbasics.com 5 5 Description: Customize My account page. Add/Edit/Remove Endpoints. 6 Version: 3.7. 36 Version: 3.7.4 7 7 Author: SysBasics 8 8 Author URI: https://sysbasics.com … … 164 164 // Don't forget to exit() because wp_redirect doesn't exit automatically 165 165 add_option('wcmamtx_do_activation_redirect', true); 166 167 166 167 168 168 169 169 -
customize-my-account-for-woocommerce/trunk/include/admin/admin_settings.php
r3450246 r3451273 470 470 update_option($this->wcmamtx_notices_settings_page,$new_row_values); 471 471 update_option('wcmamtx_flush_rewrite_cache_required',"yes"); 472 473 if ($row_type == 'endpoint') { 474 $allowed_endpoints = get_option("wcmamtx_allowed_endpoint_trial"); 475 476 if (isset($allowed_endpoints) && ($allowed_endpoints > 0)) { 477 $allowed_endpoints = $allowed_endpoints - 1; 478 update_option('wcmamtx_allowed_endpoint_trial',$allowed_endpoints); 479 } 480 } 472 481 } 473 482 … … 1031 1040 <?php wp_nonce_field( 'update-options' ); ?> 1032 1041 <?php settings_fields( $tab ); ?> 1033 <?php do_settings_sections( $tab ); ?> 1042 <?php 1043 do_settings_sections( $tab ); 1044 1045 $allowed_endpoints = get_option("wcmamtx_allowed_endpoint_trial"); 1046 1047 1048 if (isset($allowed_endpoints) && ($allowed_endpoints > 0)) { 1049 $endpoint_button_id = "#wcmamtx_example_modal"; 1050 $endpoint_button_class = ""; 1051 } else { 1052 $endpoint_button_id = "#wcmamtx_example_modal2"; 1053 $endpoint_button_class = "wcmamtx_disabled2"; 1054 } 1055 1056 ?> 1034 1057 1035 1058 <div class="wcmamtx_buttons_section"> … … 1037 1060 <?php if (isset($current_tab) && ($current_tab == "wcmamtx_advanced_settings") && ($current_tab != "wcmamtx_wizard_settings") ) { ?> 1038 1061 <div class="wcmamtx_add_section_div"> 1039 <button type="button" href="#" data-toggle="modal" data-target=" #wcmamtx_example_modal" data-etype="endpoint" id="wcmamtx_add_endpoint" class="btn btn-sm btn-primary wcmamtx_add_group">1062 <button type="button" href="#" data-toggle="modal" data-target="<?php echo $endpoint_button_id; ?>" data-etype="endpoint" id="wcmamtx_add_endpoint" class="btn btn-sm btn-primary wcmamtx_add_group <?php echo $endpoint_button_class; ?>"> 1040 1063 <span class="dashicons dashicons-insert"></span> 1041 1064 <?php echo esc_html__( 'Add Endpoint' ,'customize-my-account-for-woocommerce'); ?> -
customize-my-account-for-woocommerce/trunk/include/frontend/frontend_functions.php
r3451230 r3451273 892 892 public function wcmamtx_add_custom_endpoint_page() { 893 893 $wcmamtx_tabs = get_option('wcmamtx_advanced_settings'); 894 add_option('wcmamtx_allowed_endpoint_trial', 02); 894 895 895 896 $core_fields = 'dashboard,orders,downloads,edit-address,edit-account,customer-logout'; -
customize-my-account-for-woocommerce/trunk/readme.txt
r3451267 r3451273 7 7 WC Requires at least: 4.0 8 8 Requires PHP: 5.2 9 Stable tag: 3.7. 39 Stable tag: 3.7.4 10 10 Requires Plugins: woocommerce 11 11 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.