WordPress’s authentication system is made up of pluggable functions, which means that you can write a plugin that has a function named, say, wp_authenticate()
, and your site will use your wp_authenticate()
function instead of the native WordPress one.
Your comment about is_user_logged_in()
(on your original post) is obviated by the fact that is_user_logged_in()
calls the pluggable wp_get_current_user()
, meaning that you can write your own wp_get_current_user()
and control is_user_logged_in()
that way.
So you should be able to write an authentication system for WordPress that will use your pre-existing user database.
References
Related Posts:
- Authenticating to WordPress, using my own authentication two-factor system
- user_profile_update_errors hook not executing
- Remove/unset options field from backend Settings->General?
- Network installation giving errors when viewing or adding a user
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- User management system similar to wordpress one?
- Custom user login page by creating a plugin
- Add New User, extra fields which are required?
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- “operation successful” message
- How do you create two separate Register pages?
- Custom Registration username_exists / email_exists
- How to block specific user id in custom login form?
- Uploading/integrating custom user registration page
- Help hooking into user_register
- Create form which redirects to site in network?
- Redirect user role to a specific page on login in a multisite network?
- Remove node from multisites?
- Adding users to another blog
- Display a list of users with avatar filterable with alphabets
- Custom PHP-coding in MU installs
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- How build a custom login/register form with error handling?
- Creating custom Woocommerce attribute taxonomies from a plugin
- Add extra field to users
- How does wordpress know which site to setup (on multisite)?
- Search and Replace in database: How to replace data in SQL dump file on Windows?
- Fix 403 error on WordPress multisite network using subdomains
- How do I hide specific user profile fields?
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?
- How to create Sub Sub domain Multi User blogs?
- Trigger Woocommerce New User Email
- get_users(…) only returns one user
- List User order by ID in Descending order (Backend)
- Random Default Avatar Function
- Change the site tagline (or similar) based on current page
- Is it necessary to sanitize wp_set_password user input?
- create a select input with menus created on a custom options page
- How to give new users two specific user role options upon WordPress user registration
- How to change home or site url using action hooks or filter?
- wordpress media library new uploads don’t write to database
- How to pick the default selected value in wordpress dropdown?
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Customize position of social icons in upme plugin [closed]
- NGINX rewrite rules for multisite
- Media Upload , file name changed automatically
- Replace shortcode in substring
- WordPress stuck in deleting user
- What exactly do this function declared into functions.php file of a WP theme?
- customize wordpress database error page
- Where is the PHP code generating an element?
- Ajax search shows all results when user empties input?
- List post by title length
- Get the users that my following users are following
- create front-end users post list by specific category
- Need help with pagination
- Authentication from sub-folder non-wp cookie WordPress
- How can I call a specific file (via php) by referencing the logged-in username?
- Editor capabilities – admin_init
- Uses for function: wp_update_user
- WP insert post Redirect after function has executed
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- How can I add diffrent editable text fields?
- Storing huge number of users in wordpress
- Featured image in menu wordpres
- Custom User registration system
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Including user data in “new user notification email”
- Merging Multiple WordPress Websites
- Display current user metadata on WordPress page
- Need help transforming echo to return for use with shortcode
- Noob question: want to remove the “site identity” logo for specific part of website only
- Redirect after login depending on the URL
- Possible to have duplicate usernames on different two multisites
- (Who to follow) Twitter widget
- PHP script to redirect traffic based on website accessed
- Real time notification on user profile after new comment
- Can’t get_users info by using json_encode
- How to add text before posts
- Add two or multiple functions in WordPress Post or Page
- Newbie question. Login/Registration. New PHP page
- WordPress error on my website
- How to set max users to 17.000
- WP Admin Bar – Get current theme name as custom menu title
- Best way to define a database with product codes and back-end support?
- wp_customize_image_control default value
- Trying to post information from a remote database to wordpress page
- How to add button to top of theme customizer?
- How can I add more code to this?
- Edit the Publish Widget Options
- Null value given when confirming email’s
- New to WordPress & Freelancing [closed]
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico