There are few ways to accomplish what you want. I won’t give you any use-ready solution but just an idea.
First idea
You could set up cron job to replace authentication keys in wp-config.php, you can get them over here https://api.wordpress.org/secret-key/1.1/salt/
This way you will force all of the users to log in again.
Second idea
Create a new function to add some user date meta on successful login. On every page request, hook a new function to check if the meta value is greater than 24 hours, if it is, then logout specific user.
Related Posts:
- Allowing an email as the username?
- Front end user meta options for users
- Can I Create a Second Admin Level User Role?
- Update user role for expired membership
- Username has been exposed
- MySQL query to list users who never signed in
- Difference between update_user_meta and update_user_option
- get_user_meta() doesn’t include user email?
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- How to display custom user meta from registration in backend?
- Grouping users under parent user
- Check if specific username is logged in
- How to create a template for a custom URI associated with the user
- How do you add a custom option to user data?
- Wp_User_Query not sorting by meta key
- How we can get the user id by its display_name
- WP_User_Query with combined meta query – not working?
- How to use hyperdb to separate and share a user dataset between wordpress installs?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- \WP_User Object | What’s the Difference Between {caps} and {allcaps}?
- How to add follow functionality to multi-author wordpress site?
- Search multiple meta keys at once
- Where to Store Custom User Fields
- Querying Email Addresses for a List of Users with Same Last Name?
- ACF Upload Image in front-end with custom form
- How to customize wp_signon()
- How to add country drop down menu to the user profile?
- Add custom fields to the user profile
- stop login if user_status equal zero
- Does wp_delete_user() remove all user content?
- WP User Query fails when searching meta queries and search columns
- Hide everything on site for visitors except specific page IDs
- How to set show admin bar front to true for all users?
- Add user data to table when user is created?
- Updating user meta
- 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
- Use wp_update_user to update custom column in wp_users table
- Are User Levels Still Currently Used?
- WPML Default Language User Meta [closed]
- Display users in order by an “order” custom meta field
- Search Users base on meta_value & meta_key
- Allow user access to Dashboard only!
- Restrict access of admin uploads to certain logged-in users?
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- Updating wp_user_level on user update
- wordpress user roles are not working
- User Meta Data in a Sortable Table
- get_user_meta an ID for multiple functions
- Problem with automatic role change through cron job
- Reset Password policy
- Column Sorting Code on users.php
- How can I allow an User to publish only 5 posts per month?
- Creating user without username and password
- Where are $current_user->allcaps set?
- Is this code true or not
- The Simple and Correct Way to Add User Meta
- How to pull all the contributer users records and order by Designation (which is users meta data)?
- cannot get user_registered date from get_user_meta
- how to set default update_user_meta values wordpress
- Get user by meta key – WP multi site
- Cannot Update user meta in custom field
- Unique password to access a section site
- Adding fields to the “Add New User” but the form data not saved into DB
- New User Save Filter
- One Click Access To Users Account In WordPress?
- Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?
- how do I add role and capability after I create a new user
- Using my own user table
- What does “link” refer to when you delete a user?
- WordPress user role with create user capability?
- Can I add a unique code for each user based on the location?
- My custom user metadata is only active for only admin but i want it to be active on all users especially customers
- How to get image path from id using SQL
- Getting user data via ajax
- How can i add user display name drop down menu in frontend?
- Hook into add_user_role and update based on new and removed roles
- meta_query orderby sort multiple keys
- How to update user meta from php file?
- How to use url formatter with integer
- In admin manage users page, how can I stop users with certain privileges from editing users with other privileges?
- Custom User Role: Can Edit Own Page, Cannot Create New
- Get meta key with value for user
- user and usermeta table not found
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- Require confirmation of current user’s email before updating database and before send_email_change_email
- UserMeta Changes Meta Value for Post ID
- Restrict Access to the User Profile
- How do I change the user via SQL?
- post acces for guests / unregistered users only
- User list order by user meta
- view and update form only for registered users
- Limit user access to installing/configuring a plugin?
- Problem with update_user_meta() meta_value
- Add custom input field in new user page
- WordPress – Security Question at Login from User’s Meta Data
- How can I list users by date in an array in meta_value?
- Wordpres password as plain text in email