简体   繁体   中英

Allow registered users to see posts created from the date of sign up onwards

I have a WordPress site and I want to allow registered users to only see posts created from their date of sign up onwards.

For example, if the user registered on the 7th of May 2015, he can only see blog entries made from the 7th of May onwards.

From what I understand, the WordPress db does store the date of registration for each user. I'm trying to figure out to code it and where it should go.

You can start off by using this https://codex.wordpress.org/Class_Reference/WP_User_Query

if you are fairly new to php then wordpress might be a little too difficult. I recommend browsing through wordpresses list of free plugins to see if someone has already made what your looking for. I'm pretty sure you'll find something. https://wordpress.org/plugins/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM