Only logged-in users can access only their player profiles (CPT players) not any
-
Hello.
I found this plugin and has worked like a charm, to restrict specific pages and post to a specific roles. Great!Now I would like to have add another restriction.
Let me explain the issue.
I am using Sportspress plugin to manage a sportleague.
They have a CPT defined as “player” (slug as <domain-name>/player/<player-name>) where player′s profile is shown.
One plugin′s functionality is to assigned registered users to a player profile (see this https://www.themeboy.com/blog/how-to-allow-wordpress-user-registration-and-assign-sportspress-roles/)So, the restriction I would like to have is: Only logged-in users can access only their player profiles (CPT players) not any other profile.
I checked that under Members′s tab, I can Synchronized those Logged-in, now the idea is to restrict those logged-in user to, I don′t know if Player o Author, but I would need another condition like “user name match profile name”Let me know what you think.
Have you had a similar request like this?
What configurations do you recommend to achieve this?Thanks in advanced.
Regards
- The topic ‘Only logged-in users can access only their player profiles (CPT players) not any’ is closed to new replies.