Skip to content

Set WooCommerce pages accessible only for logged-in users

License

Notifications You must be signed in to change notification settings

Rahmon/woo-for-logged-users

Repository files navigation

=== Plugin Name ===
Contributors: rahmohn
Donate link: https://github.com/Rahmon/
Tags: woocommerce, logged-in user, shop, only logged-in user, logged in
Requires at least: 3.0.1
Tested up to: 6.1
Stable tag: 1.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Set the WooCommerce Shop only for logged-in users. Just activate the plugin.

== Description ==

Set the WooCommerce Shop only for logged-in users. Just activate the plugin and users not logged-in will be redirected to "My Account" page by default to login.

== Installation ==

1. Upload `woo-for-logged-users.php` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress

== Frequently Asked Questions ==

= What do I need to do after activating the plugin? =

Nothing :). After activating, the plugin automatically will redirect not logged-in users to "My Account" page to login.

= Can I set what pages the user will be redirected to?

Yes, you can. In Dashboard, go to menu WooCommerce -> WooCommerce for logged-in users and set the pages that you desire.

== Changelog ==

= 1.3.0 =
* [new] Filters `wflu_should_redirect_not_logged_in_user`, `wflu_redirect_page_url` and `wflu_redirect_after_login_page_url` 

= 1.2.3 =
* **Security:** update dependencies.

= 1.2.2 =
* Fix registering of REST API routes

= 1.2.1 =
* Fix internationalization issue

= 1.2.0 =
* Update the settings page with redirect options

= 1.1.0 =
* Add option to redirect to shop page after login

= 1.0.1 =
* Updated "tested up to"

= 1.0 =
* Initial release