i will make a membership system in WordPress with indeed ultimate membership pro and I would like users not to see posts that were made before the date they registered.
I want: They can still see the posts, but only from the day they registered ... I've been searching, but most likely I don't know exactly.
Thanks
pre_get_posts
can add extra arguments to queries, you could use that to turn them into date queries, but you would need to get the registration date from somewhere, and you'll need to look into Ultimate Membership Pro support for that. 3rd party plugin dev support is off topic here and not in this sites scopepre_get_posts
, a replacement loop could trivially be bypassed with an RSS feed/XMLRPC/REST API or even just adding the right parameters to the URL on a different pagepre_get_posts
- interesting, I see how this might work - thank you! Custom loop will also work if you make all posts hidden by default and reveal only to logged-in users. And how to find logged-in user registration date can be found in this question: wordpress.stackexchange.com/questions/77876/…