How would I achieve this?:
I would like a PAID USER to be able to Create one "custom post type" - {Member/landing page}
Ex: website.com/MEMBER-LANDING/USERSID
I have Created the custom post type of {Member/Landing Page} as well as the "Field Groups for {member/landing page}"
Ex: website.com/MEMBER-LANDING/BOB
{Field Groups Example}
USERID = BOB
Name = Bob Jones
Email = Bob@bob.com
Phone = 555-555-5555
WEBSITE LINK = affiliate.com/bobslink
After a user registers/Pays for membership they will have access in the back end to the create & Edit Page (I can manage this multiple ways; restrict content pro, toolset access etc)
Website.com/MEMBERS-AREA/home
here:
USER (BOB) CAN EITHER (Ideally this would show either or Create/Edit based on if user had already created post)
<Create New {Member/Landing Page}> | or | <Edit BOB's {Member/Landing Page}>
IF USER (BOB) is [PAID USER]
User should be able to create one *& Only one* of the "Member/Landing Page" post types
Then the User (BOB) Will also require access (CRED) to Edit the 1 (BOB) post {Member/Landing Page} that they created.
(edit access restricted to logged in user - (BOB))
I don't want a user (BOB) to be able to create multiple "Member/Landing page" post types, only to be able to edit the 1 they (BOB) created/purchased.
Ideally I would like the custom post type to expire should the user not pay ongoing Monthly membership *expire 30 days* (or annual membership *expire 356 days*)
If this is possible to automate, I would like to know how. Otherwise worst case I can Manually Cancel/Move to PENDING STATUS when a member expires/doesn't pay
Also USING OCEANWP and Elementor