Changeset 3396646
- Timestamp:
- 11/16/2025 04:38:34 PM (5 months ago)
- Location:
- reordere-lite-subcriptions-for-woocommerce
- Files:
-
- 10 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from reordere-lite-subcriptions-for-woocommerce/trunk)
-
tags/1.0.2/admin/class-subscription-products-admin.php (modified) (1 diff)
-
tags/1.0.2/includes/class-subscription-products-functions.php (modified) (3 diffs)
-
tags/1.0.2/public/class-subscription-products-public.php (modified) (5 diffs)
-
tags/1.0.2/readme.txt (modified) (2 diffs)
-
tags/1.0.2/reordere-lite-subcriptions-for-woocommerce.php (modified) (2 diffs)
-
trunk/admin/class-subscription-products-admin.php (modified) (1 diff)
-
trunk/includes/class-subscription-products-functions.php (modified) (3 diffs)
-
trunk/public/class-subscription-products-public.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/reordere-lite-subcriptions-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/admin/class-subscription-products-admin.php
r3260607 r3396646 112 112 113 113 public function rorder_get_retry_rules() { 114 // Check user capabilities 115 if (!current_user_can('manage_options')) { 116 wp_send_json_error('Unauthorized'); 117 } 118 114 119 global $wpdb; 115 120 -
reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/includes/class-subscription-products-functions.php
r3260607 r3396646 230 230 */ 231 231 function rorder_handle_subscription_action() { 232 // Check if user is logged in 233 if (!is_user_logged_in()) { 234 wp_send_json_error(array('message' => 'You must be logged in to perform this action.')); 235 wp_die(); 236 } 237 232 238 global $wpdb; 233 239 // Sanitize the table name … … 254 260 $order_id = intval(wp_unslash($_POST['order_id'])); 255 261 $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date'])); 262 $order = wc_get_order($order_id); 263 if (!$order || intval($order->get_user_id()) !== get_current_user_id()) { wp_send_json_error(array('message' => 'You are not allowed to modify this subscription.')); wp_die(); } 256 264 257 265 // Handle Pause Subscription … … 307 315 // Register AJAX actions for logged-in users 308 316 add_action('wp_ajax_handle_subscription_action', 'rorder_handle_subscription_action'); 309 310 // Register AJAX actions for guests (if applicable, although typically this would be for logged-in users only)311 add_action('wp_ajax_nopriv_handle_subscription_action', 'rorder_handle_subscription_action'); -
reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/public/class-subscription-products-public.php
r3260607 r3396646 208 208 wp_send_json_error(esc_html__('Invalid input data.', 'reordere-lite-subcriptions-for-woocommerce')); 209 209 } 210 $order = wc_get_order($order_id); 211 if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); } 210 212 211 213 global $wpdb; … … 266 268 wp_send_json_error(esc_html__('Invalid order ID.', 'reordere-lite-subcriptions-for-woocommerce')); 267 269 } 270 $order = wc_get_order($order_id); 271 if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); } 268 272 269 273 global $wpdb; … … 320 324 */ 321 325 function rorder_handle_pause_skip_subscription_actions() { 326 // Check if user is logged in 327 if (!is_user_logged_in()) { 328 wp_send_json_error(array('message' => esc_html__('You must be logged in to perform this action.', 'reordere-lite-subcriptions-for-woocommerce'))); 329 wp_die(); 330 } 331 322 332 global $wpdb; 323 333 $table_name = $wpdb->prefix . 'subscription_details'; … … 338 348 $order_id = intval($_POST['order_id']); 339 349 $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date'])); 350 $order = wc_get_order($order_id); 351 if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(array('message' => esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce'))); wp_die(); } 340 352 341 353 // Handle Pause Subscription … … 388 400 389 401 390 391 392 -
reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/readme.txt
r3382333 r3396646 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.0 7 Stable tag: 1.0.18 7 License: GPLv3 9 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 13 12 == Description == 14 13 15 ReordeRe Lite offers usersa powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business.14 ReordeRe Lite offers a powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business. 16 15 > 💡 **Why Choose ReordeRe?** Built for performance and ease of use, ReordeRe Lite delivers robust WooCommerce subscription features without unnecessary complexity. It's designed as a lightweight subscription management system to keep your store running fast while providing a seamless way for customers to subscribe to your products or services. Get started easily with a focused WooCommerce plugin subscription solution. 17 16 -
reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/reordere-lite-subcriptions-for-woocommerce.php
r3382332 r3396646 4 4 Plugin URI: https://techspawn.com/reorderre-subcriptions-for-woocommerce/ 5 5 Description: Create subscription products and manage them with ease. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Requires at least: 4.9 8 8 Tested up to: 6.7 … … 38 38 } 39 39 40 // Declare HPOS compatibility41 add_action( 'before_woocommerce_init', function() {42 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {43 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );44 }45 } );46 40 47 41 // Hook into plugin activation -
reordere-lite-subcriptions-for-woocommerce/trunk/admin/class-subscription-products-admin.php
r3260607 r3396646 112 112 113 113 public function rorder_get_retry_rules() { 114 // Check user capabilities 115 if (!current_user_can('manage_options')) { 116 wp_send_json_error('Unauthorized'); 117 } 118 114 119 global $wpdb; 115 120 -
reordere-lite-subcriptions-for-woocommerce/trunk/includes/class-subscription-products-functions.php
r3260607 r3396646 230 230 */ 231 231 function rorder_handle_subscription_action() { 232 // Check if user is logged in 233 if (!is_user_logged_in()) { 234 wp_send_json_error(array('message' => 'You must be logged in to perform this action.')); 235 wp_die(); 236 } 237 232 238 global $wpdb; 233 239 // Sanitize the table name … … 254 260 $order_id = intval(wp_unslash($_POST['order_id'])); 255 261 $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date'])); 262 $order = wc_get_order($order_id); 263 if (!$order || intval($order->get_user_id()) !== get_current_user_id()) { wp_send_json_error(array('message' => 'You are not allowed to modify this subscription.')); wp_die(); } 256 264 257 265 // Handle Pause Subscription … … 307 315 // Register AJAX actions for logged-in users 308 316 add_action('wp_ajax_handle_subscription_action', 'rorder_handle_subscription_action'); 309 310 // Register AJAX actions for guests (if applicable, although typically this would be for logged-in users only)311 add_action('wp_ajax_nopriv_handle_subscription_action', 'rorder_handle_subscription_action'); -
reordere-lite-subcriptions-for-woocommerce/trunk/public/class-subscription-products-public.php
r3260607 r3396646 208 208 wp_send_json_error(esc_html__('Invalid input data.', 'reordere-lite-subcriptions-for-woocommerce')); 209 209 } 210 $order = wc_get_order($order_id); 211 if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); } 210 212 211 213 global $wpdb; … … 266 268 wp_send_json_error(esc_html__('Invalid order ID.', 'reordere-lite-subcriptions-for-woocommerce')); 267 269 } 270 $order = wc_get_order($order_id); 271 if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); } 268 272 269 273 global $wpdb; … … 320 324 */ 321 325 function rorder_handle_pause_skip_subscription_actions() { 326 // Check if user is logged in 327 if (!is_user_logged_in()) { 328 wp_send_json_error(array('message' => esc_html__('You must be logged in to perform this action.', 'reordere-lite-subcriptions-for-woocommerce'))); 329 wp_die(); 330 } 331 322 332 global $wpdb; 323 333 $table_name = $wpdb->prefix . 'subscription_details'; … … 338 348 $order_id = intval($_POST['order_id']); 339 349 $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date'])); 350 $order = wc_get_order($order_id); 351 if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(array('message' => esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce'))); wp_die(); } 340 352 341 353 // Handle Pause Subscription … … 388 400 389 401 390 391 392 -
reordere-lite-subcriptions-for-woocommerce/trunk/readme.txt
r3382333 r3396646 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.0 7 Stable tag: 1.0.18 7 License: GPLv3 9 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 13 12 == Description == 14 13 15 ReordeRe Lite offers usersa powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business.14 ReordeRe Lite offers a powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business. 16 15 > 💡 **Why Choose ReordeRe?** Built for performance and ease of use, ReordeRe Lite delivers robust WooCommerce subscription features without unnecessary complexity. It's designed as a lightweight subscription management system to keep your store running fast while providing a seamless way for customers to subscribe to your products or services. Get started easily with a focused WooCommerce plugin subscription solution. 17 16 -
reordere-lite-subcriptions-for-woocommerce/trunk/reordere-lite-subcriptions-for-woocommerce.php
r3382332 r3396646 4 4 Plugin URI: https://techspawn.com/reorderre-subcriptions-for-woocommerce/ 5 5 Description: Create subscription products and manage them with ease. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Requires at least: 4.9 8 8 Tested up to: 6.7 … … 38 38 } 39 39 40 // Declare HPOS compatibility41 add_action( 'before_woocommerce_init', function() {42 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {43 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );44 }45 } );46 40 47 41 // Hook into plugin activation
Note: See TracChangeset
for help on using the changeset viewer.