I figured it out – I did not have the data type declaration for user_id so it never created the table. I changed it and it worked 🙂
Related Posts:
- Is it mandatory to use $wpdb->prefix in custom tables
- Should I use wpdb prepare?
- $wpdb->insert_id
- Check for success of $wpdb->update() correctly
- WordPress and multithreading
- $wpdb->insert is changing a value
- Actions or filters fired when data is saved in a custom table
- Retrieving custom fields with $wpdb->get_results
- Really simple query giving error in SQL syntax
- Custom Plugin Database relations
- why creating tables using $wpdb is not being executed while installing plugins?
- How to use mysql IN statement with wpdb update method?
- Using $wpdb object in a widget
- Activation hook not creating table
- How to edit mySQL wp_posts table from plugin php?
- Creating table with plugin is not working
- $wpdb -> Batch insert from XML File?
- Why my database table not created on activation?
- How to Download and install plugin database remotely
- How to update an existing table while updating plugin?
- How to insert data to a database table when the field is not yet created?
- Where to store the name of a custom table?
- include wp-blog-header not working on MAMP
- creating custom function to log actions in plugin
- SQL query for custom taxonomy slugs
- Storing product price data in the database
- Issue regarding $wpdb->prepare()
- Error on inserting a form value to database
- How to create database table, add data, update and delete using wpdb via plugins?
- Using WPDB to output raw XML fails because of wp-blog-header.php
- how to search users by ajax live search
- Adding custom end points, No error line
- Intermittent database errors when accessing WordPress database
- Storing data in wordpress database from ajax call from different website
- Gutenberg table block with Bootstrap .table class
- wpdb->prepare and mysql UPDATE – how is it done?
- dbDelta not installing database
- $wpdb->prepare with LIKE and sprintf
- How to optimize multiple insert into wordpress database
- $wpdb->update() always need a second try
- Data inserted by wpdb insert is different than data pressnt in database.
- Proper Prepare Statement for ALTER TABLE and using AFTER
- $wpdb->prepare is not working like mysql_real_escape_string
- How to avoid conflicts with db.php / $wpdb and other plugins that decide to use them?
- $wpdb in php 5.5
- Plugin to create Posts and Forums then choose category and parent forum
- $wpdb->update Issue
- How to relate the Category to user?
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- How to display specific data from a custom table to logged in users with a custom role
- $wpbd->insert_id is returning null
- How to store sensitive user data (passwords)
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- Dynamically modify content added to table via javascript
- WordPress Query doesn’t return the correct value
- using wordpress acf shortcods in tables goes outside the table
- User avatar-ACF fields
- bindParam? WordPress 4.9.5 SQL LIKE statement %s and %LIKE%
- Update database record in plugin
- Dedicated server and WPDB Class : huge slow-down of the website
- How to implement pagination into a wpdb->result query?
- How to CRUD from wordpress database in wordpress theme?
- Displaying settings information in a table
- I can’t write in my DB using $wpdb->insert
- $wpdb how can i save my postmeta table before querying it
- Google does not index data from custom table used for a plugin
- WordPress plugin tables become corrupt
- Nothing happens on WordPress Update command
- Fixing plugin for wpdb::prepare
- Can I use an array to create multiple tables?
- multiple record insert creating many duplicate records
- Add default value from selection
- How to display plugin with javascript using markup of the theme?
- Can display plugin without shortcode?
- How to make premium plugin? I want to limit it until verification
- How can I create a wp plugin with this code
- product-attribute-slug-is-too-long-28-characters-max
- Custom plugin & calling REST api of wordpress instance the plugins is running on
- Add variables from rewrite rules to query var
- Multiple dynamic Tax Query – pass taxonomy argument from array
- The plugin generated 683 characters of unexpected output during activation
- Add default custom taxonomy to plugin activation
- add_editor_style to the blog editor view (Gutenberg?)
- WooCommerce maintaince mode by using php
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- How does update method in Widget class saves $instance array from Select tag?
- Is there a way to get rendered html content of a WP post after updating?
- howTo let wordpress endpoint return html-page
- How to show the posts listing on dashboard or custom page in admin panel?
- Can’t load a script in my plugin page
- Gutenberg – Call google map render function in save after DOM has been rendered
- GET request return value as error instead of success
- How to update global variables in plugin activation callback?
- Settings API not saving
- Woocommerce get_term_by() in transition_post_status hook doesn’t works
- Plugin Install Issue “-1” Appended to end of plugin name
- Google Web Core Vitals – management, how to in wordpress and advice
- Detect if requested page is PWA on server side