You can disable registration in WooCommerce by following these steps:
1. Disable Registration From WooCommerce Settings
- Log in to your WordPress dashboard.
- Navigate to WooCommerce > Settings > Accounts & Privacy.
- Under the Account Creation section, uncheck the Enable registration option.
- Click Save changes.
2. Disable Registration Using a Plugin
- Install and activate a plugin like Disable WooCommerce Registration.
- This plugin provides an easy way to disable registration without modifying any core files.
3. Disable Registration Using Code
- Add the following code snippet to your
functions.php
file:
add_filter( 'woocommerce_registration_enabled', '__return_false' );
This code snippet will effectively disable registration for all users.
By following these steps, you can easily disable registration in your WooCommerce store.