Restrict Page based on User (ID)
-
I currently pull in ID’s from Airtable which is the exact same as the username of the user, example:
Name: Jon Doe
Wordpress Username: jdoe
ID in Airtable: jdoeI currently am using a virtual post to create a dashboard for the user.
I was wondering if there is a way to create a conditional logic or anyone knows of a plugin that would essentially check to see if the logged in user equals the [apr field=”ID”] before showing the contents of the page.
Idea:
–IF
[apr field=”ID”] = current_user_username
–THEN
Show page content
–ELSE
“You do not have permission to view this page”Thank you so much to anyone you help me answer this quetion
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Restrict Page based on User (ID)’ is closed to new replies.