Sometimes you want to begin user registrations in your WordPress site at a particular date and time in the future. Luckily it’s simple enough and it requires just a small plugin.
There’s no UI and you’ll have to modify the $open_registration_time variable with your time and hour, but it’s as simple as it gets:
- create a new file auto_start_registration.php
- copy the code from this page in it
- modify the $open_registration_time variable with your time and date similar to the format
- copy the file via FTP in your /plugins folder and activate the plugin
The plugin checks for the WordPress local time, so make sure you setup registration start based on it, not your local time or UTC time.
strtotime($open_registration_time ) ) ){
update_option('users_can_register', '1');
update_option('asr_stop_check', '1', true);
}
}
You can also use this with our Profile Builder plugin since our registration forms checks if “Anyone can register” is set or not.
Related Articles
Roundup of WordPress ecosystem #1 – January 2017
After writing the article "Overview of the WordPress Community in 2016" and getting feedback for the article on various platforms, I decided to continue writing them, but I changed its name into "Roundup of WordPress ecosystem". This is the first article from a monthly series that will showcase what happened around the whole ecosystem in […]
Continue ReadingRoundup of WordPress ecosystem #2 – February & March 2017
There were two interesting months within the WordPress ecosystem with events that are here to impact the course and development of the platform. We saw WordPress getting important security updates and a brand new design for the plugin repository and also witnessed to a significant acquisition. With this being said, let's dive into the summary […]
Continue ReadingHow to Password Protect Content, Posts, and Categories in WordPress
There are many use cases for password-protected content in WordPress. For example, you might be a content creator who wants to monetize premium content in the form of subscriptions or memberships. As with everything related to WordPress, password-protecting posts doesn’t have to be difficult. If you’re wondering how to password-protect WordPress content, posts, and even […]
Continue Reading
I think thats a great information..thank you for giving me the necessary information
thanks you nice sharing, thats so useful for me