If you’re looking to restrict the ability to view pages or posts to those that have a specific role, you can use the method described here: https://wpti.ps/check-if-user-has-specific-role-or-capability-in-wordpress/
You could create a custom role for those that need access and then check for that role using the custom function in the link above. If going that route, I’d implement a custom post type as well specifically for that type of content, then create a template for the post type that ensures that content is always displayed with the role check.
Related Posts:
- How does ifttt.com authenticate a supplied WordPress account
- What is the difference between authentication and authorization?
- Authentication versus Authorization
- Change GitHub Account username
- Google OAuth 2 authorization – Error: redirect_uri_mismatch
- What are the main differences between JWT and OAuth authentication?
- How to use OAuth authentication with REST API via CURL commands?
- How to validate a user from ouside wordpress/php?
- Override user authentication with external credentials
- JWT authentication with WP – Approach
- why does WordPress need two cookies for auth/login
- Extend WordPress (4.x) session and nonce
- How to use WordPress authentication on non-WordPress page?
- Storing Dropbox Authentication?
- WordPress as a OAuth Provider
- Authentication for wordpress website
- How to leverage authentication outside of WordPress?
- How do I execute a wp_remote_get call using NTLM authentication?
- Outgoing proxy connection problem
- WordPress SSO with MemberPress
- Authenticated request to WP REST API V2 returning 403 error on /users/me [closed]
- WordPress Authentication Middleware
- Set authentication cookies to be shorter but then extend with every page load
- WordPress user Authentication
- WordPress asking for FTP details when installing plugins
- How to password protect media library files (PDF)?
- How to use Azure AD for authentication?
- implement authentication and authorization to user
- for a role-protected page, programmatically login user and load page
- guest authentication
- wordpress 3.9 remote token auth
- How to set up Shibboleth authentication for a MU site
- Login after “Read More” then return to article
- How to make WordPress use authentication from Parent Site
- auto logout user when user logout on one of the opened tab
- How can I have authenticated WordPress users automatically sign into Moodle?
- WooCommerce OAuth 1.0 + JWT authentication with JS/React
- Authenticating users with usermeta fields
- Getting Authentication required popup
- How can LDAP/Active Directory be integrated in WordPress?
- Authenticate Subdomain
- How to create new users with JWT Auth Plugin?
- Mirgrating a user at signon
- Automate WordPress Login
- Application to Website authentication
- How to authenticate using JWT by ajax?
- Open authenticed WordPress page from mobile app
- Access to customer profile with pin code
- WP link for reset password is not received
- How to make an other web app can login with wordpress authentication?
- Password Protected Page + Showing Different Page If Not Authenticated/Authorized
- Usage of wp_send_json_success and wp_redirect at the same time
- How to add additional factor to wordpress authentication
- Adding a “Sign In/My Account” link to an external app
- Check if user is logged in, inside php file in template directory
- Connect my WordPress site users to my public site account without showing my public site credentials
- WordPress Multisite and site speed and scaleability
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Blocking the direct access to images in the upload folder WordPress
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?
- Can you pass user/pass for HTTP Basic Authentication in URL parameters?
- wp_signon by user’s login by their particular role
- How can I enforce user to use Application password to generate JWT token? [closed]
- Git push results in “Authentication Failed”
- Can I programmatically login a user without a password?
- Set up WP Authentication from External API
- What is the purpose of having a token in cookies?
- how to authenticate for the REST API from a plugin and from command line
- How to Authenticate WP REST API with JWT Authentication using Fetch API
- Android authentication
- Can we access the REST request parameters from within the permission_callback to enforce a 401 by returning false?
- Rest API authentication issue when called from fetch request in bundle.js
- Validate Custom Login field
- Authenticate with a Rails app?
- Easiest Way to Authenticate WP Users Using an External DB?
- wp-admin AJAX with Fetch API is done without user
- WP REST API – Nonce passes wp_verify_nonce even after logout
- SSO autologin WordPress + Ajax
- Problem with getting RSS because of authentication
- Can’t view ‘More details’ on plugins pop up is blank and Authy pop up
- What is best way to prevent access to Custom Post Types unless authenticated when the post type has an archive and is publicly queryable?
- WordPress REST API calls that depend on the WordPress User
- What am is missing? (API CORS)
- Possibility to login without password
- Allow Access to Home Page and Login Screen but Nothing Else (unless logged in)
- Reloading page with a query string upon login for admins
- Multiple issues with Ajax login function due to browsers and cookies
- Working Around rest_forbidden_context
- Use WP cookie to authentificate user on an external app
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- how to add security questions on wp-registration page and validate it
- Can we start session from another php site to wordpress blog site?
- After cloning my WordPress database to another server, I cannot log in
- Cookie is not set
- Use WordPress engine for user registration and management
- Advice on setting up private site
- WP REST API with Basic Auth at target website
- Social login authentication via wordpress rest api
- REST API – Authentication/Logon security
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates