Changelog
What's new in every release.
New features, improvements, fixes and security updates, straight from each plugin’s changelog. Updates install from your WordPress dashboard.
-
Restrict Checkout 1.1.0
- Improved Now requires WordPress 6.5 or later and WooCommerce 8.5 or later.
- New Custom conditions rules: combine conditions with AND / OR and "is any of / is none of" operators, including payment method, shipping method, coupon, shipping class, cart weight, lifetime spend and number of orders.
- New Message placeholders such as {min_amount}, {remaining_amount}, {min_quantity}, {country}, {products} and {payment_method}.
- New Checkout simulator ("Why is checkout blocked?"): see which rule blocks a cart for a customer and address, and why.
- New Enabled switch in the rules list, a "Blocks checkout when" summary column, and a warning before a rule closes checkout for everyone.
- New Settings: show only the highest-priority message, turn cart notices off, hide "Proceed to checkout" in the classic cart, delete data on uninstall (off by default).
- New Region rules accept several countries, state names or US:CA, and postcode wildcards and ranges; choose the address to check per rule.
- New Cart amount rules can use the subtotal after coupons or the order total; category rules can include subcategories.
- New Redesigned admin with a setup checklist, clearer rule editor sections and inline help.
- New Translatable rule messages (WPML String Translation, Polylang) and multi-currency limits (WPML/WCML, Aelia).
- Fixed Region rules check the shipping address when the cart needs shipping, as documented. Previously the billing address was checked first, so a blocked shipping address could get through.
- Fixed Purchase-history rules now apply to guests (matched by billing email) and to customers without paid orders.
- Fixed Rules switched to draft, scheduled or deleted outside the editor (bulk edit, scheduled publishing, permanent delete) take effect immediately.
- Fixed The classic checkout page now shows why checkout is blocked instead of only a generic notice.
- Fixed No restriction notice on an empty block cart; rules are also enforced for checkouts that run through admin-ajax.
- Improved Purchase history uses one cached query per customer and rules are evaluated once per request.
- Improved New filters rcw_threshold_amount, rcw_restriction_message, rcw_cart_restrictions, rcw_purchase_history_include_guests and rcw_purchase_history_stats.
-
Restrict Checkout 1.0.2
- Fixed Security — $_GET['revision'] in post updated messages is now sanitized with absint() before use.
- Fixed Compatibility headers updated — Tested up to WordPress 7.0, WC tested up to 10.9 (verified on WP 7.0.2 / WC 10.9.4 / PHP 8.2+).
- Fixed Region restriction now correctly requires all set fields (country, state, zipcode) to match — previously a country setting could block all orders regardless of state.
- Fixed Purchase-history "amount spent" and "total quantity" calculations now exclude cancelled, refunded, failed, on-hold and pending orders; only completed and processing orders count (filterable via `rcw_purchase_history_order_statuses`).
- Fixed Edit screen — previously-selected restricted categories were not pre-selected because the strict in_array compared int term_ids against string-typed meta values; meta values are now normalised to ints before comparison.
- Fixed Edit screen — "Restrict Checkout for Customers" select would fatal on PHP 8 (`Attempt to read property "display_name" on bool`) when a saved customer had been deleted; deleted/invalid users are now skipped, and the display name is rendered with esc_html instead of esc_attr for HTML text content.
- Fixed Edit screen — removed redundant in_array check inside the customers loop (every iterated user_id is by definition in the source array) so all stored customers render as selected.
- Fixed User-roles list now resolves via `wp_roles()` with a method_exists guard instead of relying on the `$wp_roles` global, preventing a fatal when the global has not been initialised yet.
- Fixed Status column on the Restrict Checkout list table read a non-existent meta key (`rcw_restrict_checkout_status`) and always rendered blank; it now shows the actual post status label.
- Fixed restrict_by_products — product IDs from meta are coerced to ints before the missing-from-cart array_diff so "all selected products required" logic compares like with like.
- Fixed Critical bug — product restriction check always returned empty due to undefined variables; restricted products never blocked.
- Fixed Added singleton pattern to all plugin classes to prevent double instantiation.
- Fixed Replaced old is_plugin_active() WooCommerce detection with class_exists('WooCommerce').
- Fixed Version constant RCW_VERSION added; asset versions updated to use it.
- Fixed Tested up to: 6.9, WC tested up to: 10.7.0.
- Fixed All else if replaced with elseif per WordPress Coding Standards.
- Fixed Strict comparison operators added throughout.
- Fixed in_array() calls updated with strict true flag.
- Fixed esc_attr() replaced with esc_html() for HTML text content in option elements.
- Fixed Integer arguments in sprintf() use (int) cast instead of esc_attr().
- Fixed Admin notice uses printf with proper escaping instead of pre-escaped class string.
- Fixed Critical — multiple-ruleset evaluation no longer clobbers earlier matches; restrictions from every violated ruleset are merged and de-duplicated instead of overwriting.
- Fixed Critical — quantity/price/order-amount/order-quantity rules now evaluate greater-than, less-than and equal-to as independent OR conditions; the previous range check used && and would never trigger when all three were enabled.
- Fixed Critical — restrict_by_purchase_history could return a bool true when purchase_history was empty, causing TypeError on later foreach; now always returns array and exits early.
- Fixed Critical — max() on empty arrays inside purchase-history checks would throw ValueError on PHP 8; now guarded.
- Fixed Critical — order-quantity rule was comparing per-line-item quantity instead of total-items-per-order; now sums quantities per order.
- Fixed Critical — Cart & Checkout Blocks validation hook switched from too-late "woocommerce_store_api_checkout_order_processed" (fires after order creation) to "woocommerce_store_api_cart_errors" with proper WP_Error population, so block-based checkout is actually prevented.
- Fixed Float equality on cart subtotal vs. "equal to" price now uses epsilon comparison (abs diff < 0.005) instead of ===, which would never match due to FP precision.
- Fixed Cart subtotal now falls back to summing line_subtotal/quantity*price when WC()->cart->get_subtotal() returns 0 before totals are calculated.
- Fixed restrict_by_products now safely handles missing products_logic key, empty arrays and adds variation_id matching so variable products are not bypassed.
- Fixed restrict_by_certain_categories now safely handles missing categories_logic key and short-circuits the multi-category loop once all required categories are matched.
- Fixed restrict_by_region now handles both array and string storage of the country value (older saves stored a string); states/zipcodes also tolerate either format.
- Fixed rcw_restrict_users_and_roles now coerces customers/roles to arrays before in_array/array_intersect, preventing PHP 8 TypeError when the meta is an empty string.
- Fixed rcw_search_users AJAX endpoint now requires edit_posts capability in addition to the nonce check.
- Fixed rcw_show_title_error now only runs on the restrict-checkout post type screen.
- Fixed Restriction message now saved with sanitize_textarea_field so line breaks are preserved.
- Fixed Country meta save normalised to an array of country codes so the admin select and frontend region check share one format.
- Fixed rcw_cats_logical_condition default no longer mismatches type (was assigning array() and saving '').
- Fixed wp_enqueue_style for backend now passes array() instead of '' for $deps (PHP warning).
- Fixed $_GET['revision'] now sanitized with absint() after wp_unslash in post updated messages.
- Fixed rcw_check_cart_items no longer requires is_cart()/is_checkout() conditional tags, which fail under Store API/REST contexts.
- Fixed Duplicate restriction messages from multiple rulesets are now de-duplicated before display.
-
Restrict Checkout 1.0.1
- Fixed Partial bug fixes for cart restriction evaluation.
No change matches that. Try another word or filter.