Welcome to WPSE. Asking for plugin recommendations is considered off-topic here, so here’s an action approach to the problem.
wp_insert_user()
takes care of adding new users to the database. The last action the function fires is user_register
, which “Fires immediately after a new user is registered”. You could hook your function to this action and use it to update the custom DB table.
In your action function you can use the global $wpdb
to manipulate your database tables whether they are standard WP tables or not. (You can also use wpdb
class to connect to other databases, too.)
To insert new data into the database you can use the wpdb::insert( string $table, array $data, array|string $format = null )
method.
If there’s some user data that needs to be kept updated and synced, then you can hook to profile_update
action, which wp_insert_user()
also fires, but “…immediately after an existing user is updated”.
Related Posts:
- Multiple instance of data in plugin custom database table on plugin activation
- Can’t create tables with my plugin
- Some error in mysql script ? Can’t working to create table
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- How can I copy all users to newly created site on a multisite network in WordPress?
- WordPress plugin output formatting
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- Enabling WP_USE_EXT_MYSQL to support old plugin
- how to access all user dashboard on fronted page [closed]
- Insert data from .sql file in wordpress plugin
- How to create restrict content to users (by user, not by role)
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- WordPress Backend HA (Automatic failover)
- Enable users to change change and add taxonomies of posts
- Disqus deleted comments are syncing with wordpress but active comments do not
- Automatic switch to backup database on fail
- SQL to order by CPT results by user->display_name w/only user->ID known
- How can I change the meta_key for a particular piece of information?
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- Enabling plugin failed because MySQL user do not have CREATE permissions
- Custom User meta field display
- Create a table with wordpress plugin boilerplate
- WordPress page and plugin list using sql query
- Obtaining user table for one site on multisite set up
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- WP-DownloadManager – Query most download per week/month etc
- Better ads plugin has 500.000 entries in wp_postmeta
- edit_user_profile and show_user_profile are not firing inside a class
- Can I create a table on my DB without creating a plugin?
- Errors when trying to use a plugin to write to the database
- _prime_post_caches in wordpress
- pagination on data fetched using SQL query
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- Speeding SQL queries for a large database?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- How to create multiple users at once?
- Mass SQL WordPress Meta Key deletion
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- Shortcode to update user meta
- Multisite – maximum number of users with specific role
- How do I get the user ID of the user that was updated in WordPress?
- Understanding State in WordPress Multisites
- How to have sample page for each new register users in a membership website
- dbDelta not adding additional columns in plugin database update
- How to get all posts belongs to a user between a certain date
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- Specific way to allow WordPress users to view their current password? And edit it?
- how can I query all wordpress users of a blog
- Add Content to Content()
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Always get creating a new table with foreign key
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How to do database for download stats?
- get_users(); Is an Undefined Function When Used in Cron Job
- How can I fetch data from another website to my wordpress website with mysql database
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- DB Query not working in Plugin
- External wpdb connections in different plugins on single page
- How limit user connection?
- How can ι create my own (custom) WordPress table/list?
- Custom Login page with custom redirects for each user?
- speed up pagination for huge database
- how to make dynamic subdomain for each user registering?
- Way to send multiple values for column to MySQL?
- How to pass a query string to another page on the same site?
- Comment Approve – Add custom function when comment is approved
- WordPress /users/me endpoint request forbidden
- Mutliple users editing single document in wordspress
- Table is not created in WAMP
- Creating a search form and displaying results
- WordPress plugin: efficient way to store large data
- Plugin generating unexpected output – on WP mysql dump import
- Remove specific administrator’s capability
- Plugin permissions for Editor role
- Personalized Author Area
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Table appears in Visual mode of editor but not in preview or after publish
- How to auto strip hyperlinks & images in wordpress post
- Completely remove ability to create users?
- Role based permission edit for plugins
- Interface needed to transfer contents in a table on a web page to the Add New Product interface
- Integrating Custom Database with WordPress
- Creating teams of users in WordPress
- WordPress plugin for Limited days user
- How to display results from a data table with an encrypted user id?
- Need to add/remove group of options and display them as rows
- Plugin privelages for “editors”
- Check against server time to display SQL entries – Radio Station DJ Rotator Plugin
- Shortcode not displaying HTML within the function
- Janrain/Simple Modal under Redirected Domain
- add_action for publish_post doesn’t work
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- WordPress Cache delete on plugin uninstall
- Disable Author Archive just for certain roles in bulk
- Auto populate a user custom field from another user custom field
- need to find duplicated meta value in custom filed and view the posts that have the same value
- how can we migrate wordpress 5.9 website from aws ec2 to new installed wp 5.9 oci compute
- JOIN and SUM different statement results (Mailster Database)
- WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin