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
- WP_User_Query and non-unique usermeta data
- Creating 20,000 Posts or Pages using a .csv file?
- Loading posts associated only to the logged in user on recent posts page
- How can i force Display names to be the same as Usernames?
- Search and replace text across all posts
- Bad Request (Invalid Hostname) on working server, database problem
- Syncing production with staging
- How to create custom LOGIN and REGISTRATION forms?
- $current_user var returns NULL
- Multisite functions to communicate with individual site functions
- WordPress Plugin for One-Time Event Registration? [closed]
- Will WordPress username displayed somewhere in the site?
- Upload files programmatically to users
- Replace existing pages with new pages, keep menu links
- Current user in plugin returns NULL
- How to upload user profile image from frontend in wordpress ?
- Average Account Age
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- New User Form – Custom Menu Page
- Creating mySQL procedure with $wpdb
- WpDataTables – View Image Directory
- How do I run SQL queries on a WordPress web page? [closed]
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Insert data from .sql file in wordpress plugin
- How to create restrict content to users (by user, not by role)
- Automatic switch to backup database on fail
- Create a table with wordpress plugin boilerplate
- WordPress page and plugin list using sql query
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- WP-DownloadManager – Query most download per week/month etc
- 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
- Mass SQL WordPress Meta Key deletion
- Multisite – maximum number of users with specific role
- How to have sample page for each new register users in a membership website
- dbDelta not adding additional columns in plugin database update
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- 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”
- External wpdb connections in different plugins on single page
- How to pass a query string to another page on the same site?
- 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
- Personalized Author Area
- How to auto strip hyperlinks & images in wordpress post
- 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
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Disable Author Archive just for certain roles in bulk
- how can we migrate wordpress 5.9 website from aws ec2 to new installed wp 5.9 oci compute
- How to get the custom field value using SQL query
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- I created a plugin with ‘view page’ that uses MYSQL + PHP. When I use wp_insert_post(), it turns everything to HTML
- create pages automatically and dynamically in wordPress
- A dynamic table plugin to get user input
- How to implement data residency in my WordPress site
- how to create user profile pages and display them based on users roles
- WordPress UPDATE queries on MySQL database stuck
- User updating their profile wipes my custom fields
- WordPress database problem wp_posts, primary key
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Comment restrictions Wodpress
- User / membership Plugin [closed]
- How to see in Edit Comments if comment is from User and her Roles
- Custom User Notice Upon Login
- How can I save cookies to members
- Every time I use wp_get_current_user() my plugin breaks
- Users Ultra: Hide asterisk for required registration fields?
- Re-writing MySQl query for execute faster
- Defined user role to access plugin’s pages
- Write mysql credentials in plugin
- Help with sorting and storing data on WordPress
- Linking Plugin Files to WP
- MySql Query for WordPress
- How to set different users for different pages?
- Carrying information from button click into form [closed]
- Errors when using CDN Sync Tool plugin
- Want to add post to user dashboard
- Using wp config to connect to a DB from a plugin
- Get all the related data from WordPress DB
- How to make wordpress backend mobile optimized.?
- Trying to insert a row from a Plugin
- 504/502 errors plauging our site
- Identifying Plugins Based on Tables [closed]
- How can I delete the options from DB when the plugin is deleted?
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Split Million WordPress Post’s Into Multiple Database Server
- Issues with creating user profile for a subscriber, but with different profile page and functionalities
- How to set an exact search box in tablepress plug-in