First, check for get_current_user_id. Then create a log of visits by adding information to a user’s metadata with update_user_meta & get_user_meta.
On every page hit that you care about you can run a function to determine rate/limit of usage per user.
If they break the rules, you can redirect to a page that doesn’t contain that logic with wp_redirect.
Related Posts:
- Restrict access of admin uploads to certain logged-in users?
- How do you manage your pages or functions that require logged-in users?
- How to programatically change username (user_login)?
- How to restrict access to uploaded files?
- Allowing users to edit only their page and nobody else’s
- WordPress auto login after registration not working
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- Allowing an email as the username?
- Check if specific username is logged in
- Post list based on the user that is logged in
- Basic auth WordPress REST API dilemma
- Copy a user from one WordPress site to another
- Front end user meta options for users
- Authenticate user using Hashed Password in MySQL Query and C#
- How to customize wp_signon()
- Can I create users that have access to *some* other users posts instead of all other users posts?
- My custom page template with is_user_logged_in() does not detect that I’m logged in
- Set default page for user account in admin
- Authenticate with a Rails app?
- Share user table from WP with Drupal
- Log all users out of all locations after 24 hours
- Hide everything on site for visitors except specific page IDs
- WordPress Authentication Middleware
- Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file
- Managing Users and Creating Groups [closed]
- show text If special user is logged
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- How to disable a specific page for a specific user
- Allow user access to Dashboard only!
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- Problem with automatic role change through cron job
- Reset Password policy
- How can I authenticate user credentials against a WordPress instance?
- How can I allow an User to publish only 5 posts per month?
- OAuth 2 and saving the authenticated user
- Where are $current_user->allcaps set?
- WordPress Login Customization for External Authentication
- Allow users to create post without logging in?
- New user form rejected because “passwords don’t match”—but there’s only one password field
- REST API: wp_get_current_user not working on second call
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- Delete a user from frontend
- Unique password to access a section site
- One Click Access To Users Account In WordPress?
- Using my own user table
- WordPress user role with create user capability?
- How to verify which WordPress user requested the API in ASP .NET Core?
- Need to use WordPress page as authentication for different service
- Update user role for expired membership
- How to allow access based on the user meta flag
- Authentication between two different sites using the WordPress login cookie
- Use WP cookie to authentificate user on an external app
- The same session information for peer users on two different WordPress servers
- Iterating users while user iteration is suppressed
- Disable emails for new user registration
- Check for empty username or password on login
- How to use url formatter with integer
- Custom User Role: Can Edit Own Page, Cannot Create New
- WordPress install checking permissions of user id 0
- Allowing users to edit only their page and nobody else’s
- How to bulk change user role to “No role for this site”
- Restrict Access to the User Profile
- post acces for guests / unregistered users only
- Username has been exposed
- view and update form only for registered users
- Control Category of each user can post
- Securely log in a user without a password using a link?
- Limit user access to installing/configuring a plugin?
- determine active user browser at the same time
- How to track all users logged into a site?
- MySQL query to list users who never signed in
- Wordpres password as plain text in email
- How to authenticate/verify login credentials & check for user meta without logging in?
- WordPress password as plain text in email
- Allow Html pages for users with specific roles
- (How) does WordPress protect direct access of user data?
- How to remove/limit Editor accounts privileges, to prevent them from deleting media and pages created by Admin
- wp_authenticate_username_password not authenticating properly when pass username and password
- How do I add a field on the Users profile? For example, country, age etc
- Groups of capabilities: users with multiple roles?
- Is there a way to merge two users?
- Redirect after login based on user role (custom login page)
- Delete user from frontend
- Force logout ALL users at a certain time
- Including users in insert link internal link search in Gutenberg
- How do I transfer user passwords from one WordPress site to another?
- Show WordPress users in grid with image and name
- Redirect users after login
- User Meta stuff
- User can’t search himself on rest api
- How do I update user email from frontend input field?
- members only products
- Create relationships between users or user roles
- Store extra user values permanently
- Are there any hook or filter when adding new user in WordPress?
- How-To: Get meta data from the users last order in woocommerce