Changeset 3415278
- Timestamp:
- 12/09/2025 11:19:44 AM (6 weeks ago)
- Location:
- store-restriction-for-woocommerce/trunk
- Files:
-
- 3 edited
-
includes/admin/class-srfw-register.php (modified) (1 diff)
-
readme.txt (modified) (5 diffs)
-
store-restriction-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
store-restriction-for-woocommerce/trunk/includes/admin/class-srfw-register.php
r3415191 r3415278 10 10 add_action('rest_api_init', array( $this, 'srfw_register_routes' )); 11 11 add_action('admin_init', array( $this, 'init' )); 12 // Register a hidden page for Freemius first-path and redirect to WC tab13 add_action('admin_menu', array( $this, 'srfw_register_hidden_redirect_page' ));14 }15 16 public function srfw_register_hidden_redirect_page() {17 // Register a hidden admin page to satisfy Freemius first-path18 add_submenu_page(19 null,20 __('Store Restriction', 'store-restriction-for-woocommerce'),21 __('Store Restriction', 'store-restriction-for-woocommerce'),22 'manage_woocommerce',23 'store-restriction-for-woocommerce',24 array( $this, 'srfw_redirect_to_wc_tab' )25 );26 }27 28 public function srfw_redirect_to_wc_tab() {29 // Avoid intercepting Freemius internal views or actions30 if ( isset( $_GET['fs_action'] ) || isset( $_GET['view'] ) ) {31 return;32 }33 // Redirect to WooCommerce Settings tab used by the plugin UI34 wp_safe_redirect( admin_url( 'admin.php?page=wc-settings&tab=srfw' ) );35 exit;36 12 } 37 13 -
store-restriction-for-woocommerce/trunk/readme.txt
r3415191 r3415278 1 1 === Store Restriction for WooCommerce - Product Visibility & Access Control === 2 2 Contributors: woosofts 3 Tags: woocommerce, product visibility, restrict products, hide prices, user roles, wholesale, b2b, members only, country restriction, category restriction, private store, catalog visibility 3 Donate link: https://versesofts.com 4 Tags: woocommerce, restrict products, hide price, wholesale, members only 4 5 Requires at least: 5.0 5 Tested up to: 6. 86 Stable tag: 1.3. 06 Tested up to: 6.9 7 Stable tag: 1.3.1 7 8 Requires PHP: 7.0 8 9 License: GPLv2 or later … … 13 14 == Description == 14 15 15 Store Restriction for WooCommerce t ransforms your WooCommerce store into a powerful restricted‑access platform. Whether you're running a wholesale business, B2B marketplace, or members‑only shop, this plugin gives you complete control over product visibility and access based on user roles, geographic location, and more.16 Store Restriction for WooCommerce turns your shop into a precise, rules‑driven catalog that shows the right products to the right customers. Build wholesale catalogs, members‑only stores, or region‑aware assortments with simple, scalable controls that live inside WooCommerce Settings. 16 17 17 Need help? Email [email protected] 18 Built for performance and compatibility, it works with native product/category data and standard WooCommerce filters, so your theme and other plugins keep working as expected. 18 19 19 Looking for advanced features like bulk restrictions and order-based access rules? Check out PRO: https://versesofts.com 20 Need help fast? Email [email protected] or reach us via the links below. 20 21 21 22 #### 🔥 Key Features … … 25 26 * **Category Protection:** Set restrictions at the category level for efficient management 26 27 * **Individual Product Control:** Apply granular restrictions to specific products 27 * **Bulk Management :** Efficiently manage multiple restrictions at once28 * **Bulk Management (Preview in Free):** Efficiently manage multiple restrictions at once 28 29 * **Custom Restriction Messages:** Create tailored messages for restricted users 29 30 * **Global Store Settings:** Control store-wide restriction policies 31 * **Modern UI in WooCommerce Settings:** Configure everything under `WooCommerce → Settings → Store Restriction` 30 32 31 33 #### 🎯 Perfect For … … 47 49 * Intuitive, easy-to-use interface 48 50 * Global store configuration options 51 52 Looking for advanced controls like full bulk editing and order‑based access rules? Preview them inside the plugin and upgrade anytime. 53 54 #### 🔗 Useful Links 55 56 - Website: https://versesofts.com 57 - Documentation (This Plugin): https://versesofts.com/docs/store-restriction 58 - All Docs (including other plugins like Price & Cart Hider): https://versesofts.com/docs 59 - Feature Request: https://www.versesofts.com/feature-request?plugin=store-restriction 60 - Contact: https://www.versesofts.com/contact 61 - Email Support: [email protected] 49 62 50 63 == Installation == … … 90 103 We offer support via email: 91 104 * Email: [email protected] 105 You can also reach us via: 106 * Contact: https://www.versesofts.com/contact 107 * Feature Request: https://www.versesofts.com/feature-request?plugin=store-restriction 92 108 93 109 == Changelog == 110 111 = 1.3.1 = 112 * Updated - Freemius SDK integration and flow (set_basename, safe first-path redirect, post-activation redirect to Woo settings, uninstall cleanup) 113 * Added - Plugin row meta links (Docs, Feature Request) and Donate link 114 * Improved - Readme content, tags, and metadata 94 115 95 116 = 1.3.0 = -
store-restriction-for-woocommerce/trunk/store-restriction-for-woocommerce.php
r3415191 r3415278 4 4 * Plugin URI: https://wordpress.org/plugins/store-restriction-for-woocommerce 5 5 * Description: Store Restriction for WooCommerce transforms your WooCommerce store into a powerful restricted access platform. Whether you're running a wholesale business, B2B marketplace, or members-only shop, our plugin gives you complete control over product visibility and access. 6 * Version: 1.3. 06 * Version: 1.3.1 7 7 * Tags: woocommerce, product visibility, restrict products, hide prices, user roles, wholesale, b2b, members only, country restriction, category restriction, private store, catalog visibility 8 8 * Author: WooSofts … … 24 24 define('SRFW_PATH', plugin_dir_path(__FILE__)); 25 25 define('SRFW_FILE', __FILE__); 26 define('SRFW_VERSION', '1.3. 0');26 define('SRFW_VERSION', '1.3.1'); 27 27 28 28 // Freemius Integration Start (restored)
Note: See TracChangeset
for help on using the changeset viewer.