You should never modify the WP core tables, all your changes will be undone and the data lost the next time WP updates its table schema.
Instead, if you want to store more data on a user, do what other people do and use user meta:
update_user_metaget_user_metaadd_user_metadelete_user_meta
You can even query for it with WP_User_Query.
Otherwise, by adding custom columns, you’ll have to write a tonne of SQL code from scratch, and risk major data loss.
Related Posts:
- what is the use of /wp-includes/SimplePie?
- How to check if image is already stored in a site’s post database? (network)
- Inserting choice in database table
- How To Make Connection To WordPress Data Base In A Plugin?
- Has anyone tried putting PHP ActiveRecord on WordPress?
- Changing user_nicename
- WordPress will not operate correctly
- How to Join two tables from separate databases within WordPress
- How can I call a row of user specific data from a custom table added to the WP Database
- How to track a users progress through pages by inserting data into WordPress Database?
- Import 10,000 Users into WordPress WITH a specific ID for each user
- if statement on database query
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- How to generate page content from database the right way?
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Proper way to edit a post via phpMyAdmin without breaking the compare revisions tool
- phpMyAdmin displays error when importing database
- Prevent Data Resubmission On Page refresh
- SQL QUERY – Select a value directly from the database
- How to get the POST TITLE using the POST ID?
- Why is the post meta[] empty when I make a call to the wordpress rest api?
- WordPress Scheduled Event Request Blocking
- Transferring working local PHP site to wordpress – with database (MySQL)
- Trying to establish connection to External Database
- Getting id of poll from WP database
- How to insert a single row to WP database table?
- $wpdb->update with multiple parameters gives error
- wp search-replace on database returns PHP fatal error: Array and string offset access syntax with curly braces is no longer supported
- How does WordPress know wich language is chosen when there is a database connection error
- Is it possible to create a wordpress database with php code?
- Store a default value for a transient on plugin activation
- Split reads to a different connection string
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Dynamic content in template
- inserting a post from an extern php file but post content doesn’t show on wp site
- Using custom tables for old posts
- Databases – Submitting data from inputs to database [closed]
- db converts decimal number wrong
- Is it best to avoid using $wpdb for security issues?
- How can I import an excel column into wordpress database?
- Blob file download problem
- Execute a function every hour in the background
- Create page with custom php script and fetched data
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- Creating Database Table vs. Adding MetaData to Post & User
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Most commented posts by time period (last 12h, last 24h and etc)
- How can I find the cause of a 500 server error?
- I can’t update my data through $wpdb
- Cant connect to database with php 7.3
- How to get image from url from the database?
- Set default Database Storage Engine when creating tables with plugins?
- Wpdb get->results to out the the month from the db
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- SQL error with custom query
- Unserialize Custom Field & Save as Multiple Rows in WordPress Database
- Change wordpress’ database data using ajax – how to get current user id?
- add role on WordPress in PHP on a second database
- Create a new account on site B with data from the purchase of site A
- How to search order using database frontend short code WordPress
- Limiting posts based on nested meta_query
- Preserving backslashes in post_content
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- wp_update_post gives 500 internal error
- Unable to insert two value in two different columns (WordPress database)
- Retrieving and Displaying Data From a Table
- why not selecting multiple rows of same standard_id using SQL query from database?
- Using custom php to connect to database blocks wp from accessing galery pictures
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Updating the database after parsing CSV document
- getting the values of hidden inputs to use them in a php mysql query
- How to display post_content from database in different on template page?
- Front end/Database connection in WP
- Issue in url update when using wordpress update query
- can’t delete a row from post_meta table
- special characters not supporting in wordpress
- How to set max users to 17.000
- How to fetch results from database
- How to connect database table to each registered wordpress user.
- Let users register weight each day and save it in DB
- Query specific posts per user selections from dropdown menus
- Create an unique ID number after submit form
- Fetching wpdb data from a php file seems to break?
- How do I empty a specific meta_value for all users in PHP
- Create custom table for wordpress custom registration flow
- Custom form that stores data in mysql database
- How to get data (not value or name) from radio options to POST to database
- Creating a table via dbDelta
- wpbd to connect to a VPS mysql database
- Retrieve data from external database and insert back in
- How to get the last date updated of postmeta?
- Putting form result in my database
- Bulk data save in custom table
- Issue with WordPress Plugin Activation Hook and Table Creation
- Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder
- How to improve the performance when using a flat-file dataset and PHP for implementing advanced search function?