You appear to have answered your own question in a comment, but yes, the SQL is wrong. KEYs must come at the end of the statement, after the column definitions.
Related Posts:
- dbDelta not creating tables
- dbDelta ALTER TABLE syntax?
- dbDelta() Error – Incorrect index name ” for query ALTER TABLE
- How to update an existing table while updating plugin?
- dbDelta using Foreign key not working on update [duplicate]
- dbDelta not installing database
- dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
- How to store sensitive user data (passwords)
- How to override existing plugin action with new action
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- How to store username and password to API in wordpress option DB?
- Which hook should be used to add an action containing a redirect?
- How do I create links at the top of WP_List_table?
- Is it worth checking if class_exists when developing a plugin and how to do it?
- Why Does get_posts() Return an Empty Set?
- Where to enqueue stylesheets for plugin?
- How do I resolve Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1145
- How can the tinyMCE dom be manipulated (offical API does not seem to work)?
- stray elements
- Deletion of shared options using uninstall.php
- Pass javascript result to shortcode executer function
- URLs of plugin resources?
- anything like add_meta_box for categories?
- Plugin Settings not Saving on Ajax re-ordered table
- Can we create a category list page in WordPress?
- How to include class from addon after to be sure one class exists in the main plugin?
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Undefined function wp_set_password
- WordPress password reset – why post rp_key?
- How to modify the new WordPress 4.5 link inline toolbar
- Is it possible to check is loaded language files correctly with WordPress plugin?
- Get the link text
- Multisite plugin development and wp_enqueue_script
- Prevent plugin from deleting important directories
- Default category got deleted. How to get it back as ID=1?
- Is Dreamweaver CS5 a serious choice for theme/plugin development?
- What allows a template file from plugin to be copied in child theme and overridden?
- How to set “Site Address (URL)” programmatically on WP multisite?
- creating custom archive template within plugin for custom post type using archive_template filter
- Advice on plugin structure
- Reset plugins version cache | pre_set_site_transient_update_plugins
- Add column and post filter for a custom post type field on the edit.php page
- Problem with parameters in url and pagination
- Trying to understand order and frequency of action hooks firing
- Create & Save multiple Meta-boxes
- Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
- How to fetch all images from a WordPress draft using PHP?
- Can’t get woocommerce_get_price_html to work [closed]
- jQuery selectors for editor elements safe to use?
- wp_set_object_terms not updating database without a die()
- WordPress form action – doesn’t work
- How to fetch only current hour posts?
- Fatal error: Uncaught Error: Call to undefined function get_option()
- Strange Situation When Try To Retrieve Github Gist Using wp_remote_get
- jQuery does not enqueue for my purpose… (before an inline script in the footer)
- how to get all the child category name in a specified category name?
- Can I add custom css to an mu-plugin?
- Change WooCommerce Email Header using custom plugin
- How to get the current page Title and Page URL in footer.php
- insert query on a custom table using ajax with jQuery plugin Jeditable
- How to add search form in main page body?
- WordPress Rest API with rest_do_request, possible race condition?
- Need help about understand api, wp, $ syntax in WordPress plugin script
- Is it possible to use WP-CLI in a plugin (or theme)?
- Load php file with jquery in single.php
- Restore svn trunk of my plugin repository to the initial state?
- Anyone using unzip_file successfully? It uploads the zip but doesn’t extract it!
- WP 3-way voting system: On to something! Please help!
- Why is the expected file not being deleted?
- How to determine which capability to use?
- How does one update complex options?
- How to highlight a page in the page list (Admin Menu)?
- Hook to execute after deleting a Custom Taxonomy
- Forbidden Error in ajax call with wordpress
- How to use setAttributes outside of the edit function return
- WP plugin svn checkout 429 error “Too many requests”
- Custom non-template page on front end fails to render
- Add custom parameter for custom user role
- Post is uncatagorized in publish_post action
- WordPress Filesystem create CSS-File – get Shortcode ID for Name
- How to add admin.php to WP Admin Menu Link
- Use admin-post to submit form data to external database
- Code to add template to page
- Single_template for a custom post type created from a plugin is returning an empty page
- How to retrieve custom profile fields associated with different users
- Navigate to external link if last page or post in a category
- How do I control the list of Pages an author can see?
- Is there a general way to get a themes primary colour?
- How to work with AJAX and WordPress?
- How to Register/Link to .js Files in WordPress Dynamicaly in Header.php
- Yet another wp_insert_post infinite loop. What is wrong?
- Initialize class inside plugin
- “Print to printer” functionality in a plugin
- Which subset of html does WordPress support?
- How to set init for maximum script execution, memory limit and max files upload in wordpress
- Trying to build a plugin – Cannot modify header information
- How to get the value entered in the input field in wordpres
- Sanitize and Save metabox values
- How can I add a custom button to the post editor?
- How to use register_setting()