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
- Where is the PHP code generating an element?
- Basic wpdb update question
- Show current user posts only
- How to include custom PHP file both in header and footer files
- How to disable all logins except Network login in WordPress Multi site?
- Check class_exists before class definition / Doxygen problem
- Ajax search shows all results when user empties input?
- Extract links from content
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Change page password every day (predictable password ;) )
- Delete or edit postmeta with specific meta_key?
- Integrating Yii2 and WordPress
- List post by title length
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- show something only when user comes from specific page at remote host?
- Get the users that my following users are following
- How to fix that new users show up again in subsite of a Multisite?
- create front-end users post list by specific category
- Need help with pagination
- Known Issues in WordPress When Upgrading PHP to ver 7
- WordPress homepage setup not working on first load
- After disabling WPML multi currency, the currency is still handled by the WPML
- How do i wrap woocomerce attribute in list?
- Show site content based on user role
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- PHP Helper Class to create shortcodes
- Update if post with specific title exists
- ‘pre_user_query’ interfering with user export
- Reusable code that I can store in the function.php and apply to other templates as need. Dry Code
- Custom User Registration script only allowing usernames with 16 characters
- Is it possible to add a custom page to a free WordPress site? [closed]
- Is there a hack for using is_page() within the function.php file?
- php return username of currently viewed author profile
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- save metabox with new values _wp_page_template
- Why, when moving a WordPress multisite network, have my theme customisations stopped working?
- How to Fix an Archive.php That Displays All Posts?
- List of Events with Multiple Dates: Only NEXT Date
- Set cookie for visitor
- Assign Custom classes to every Excerpt
- Make next post button link to random post
- Authentication from sub-folder non-wp cookie WordPress
- pass html code to worpdress
- pagination broken – clicking next displays “page not found”
- How do I custom code the start page?
- need help adding a new sidebar to a page that can’t use page-templates -> multisite
- How to list users like an archive page 10 users on page and have navigations
- Display movies that apear this day next
- How can I call a specific file (via php) by referencing the logged-in username?
- Kohana Frontend, WordPress Backend
- Redirect to current user page upon link click
- How can I fix this code [duplicate]
- is_user_logged_in returning nothing on custom page
- Customize field names in backend profile edit page through function.php [duplicate]
- Editor capabilities – admin_init
- how to add datas in taxonomy to post with wp_insert_post
- Use of antispambot with $curauth->email
- Uses for function: wp_update_user
- Site DOES NOT LOAD after 3.1 update
- Display additional user fields
- WP insert post Redirect after function has executed
- how or where wordress collect unlogged user session
- Create condition for Author bio Social Links
- How to sort posts by active category in WordPress?
- wordprees multi-site in user panel add filter
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- WordPress Multisite login_redirect to primary blog and specific page based on role
- Change permalink structure specific category
- Array data not saving to specified sections. How to make seting independantly?
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- Customizer control save then return to default
- Create Columns with Custom Walker and CSS Classes
- WP-Bakery – Add custom colors to buttons with template colors
- I need to display posts in subcategory beside posts in main category
- Generate a QR code when creating a new WordPress user
- How can I add diffrent editable text fields?
- How can I check that the acf field value is not a duplicate when adding a post?