The dbDelta function is super nitpicky. Everything has to be exactly correct.
In this case, the lack of space between the table name and the parentheses following it will cause your call to fail, because it can’t figure out the table name without that space.
The relevant code in dbDelta() is this:
if (preg_match("|CREATE TABLE ([^ ]*)|", $qry, $matches)) {
It’s looking for CREATE TABLE, followed by a space, followed by some text that does not contain a space. That ending space between the table name and the open-parenth is therefore not optional.
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- Manually set global $post vars with an ID, in order to use template tags
- How to not allow users to create new tags, but allow to them to use existing ones
- How to include a plugin’s php file to another plugin functions file [duplicate]
- if plugin is active? check if plugin is enabled or not?
- Common functionality between my own plugins
- How to override a theme function (within a class) using a plugin
- Editor access to plugin settings
- Seeking clarification on page request life-cycle
- How to assign user a role if none is present when logging in
- Saving Plugin settings to the database
- Shortcode display outside the div
- How to remove action from plugin?
- How to find out what blocks are added by a plugin
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Where to place custom functions?
- plugin development: problem with functions
- AJAX button run function
- Dropdown menu on custom page with product to choose number of products per page
- How to append to title via functions.php for auto-posting plugin [duplicate]
- Bootstrap Drop Down menu is not working
- Custom random quote widget breaks when used in multiple sidebars
- Display post lists in 2nd paragraph
- How to change constants in WordPress wp-config.php programmatically?
- Override Plugin Script Fucnction in WordPress
- creating html reusable blocks via shortcodes
- Replacing a plugin function with a custom renamed function doesn’t work
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- How to call WordPress function other files
- Conditional attributes and logic per product category
- How to set Noindex to all wordpress pages in a catergory?
- Redirect to another page using contact form 7? [closed]
- Display Custom Field Value on Admin Page Column
- List the authors that have written posts in a category
- Load Javascript from Plugin in One Page Only?
- How to get plugin name from plugin file location
- Checking the count within a foreach loop
- How to keep variable `$post` to using in another file
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- wc_get_template new template does not showing up
- Overriding an Array in a Plugin’s Class/Function from functions.php
- How do I create a custom permalink structure for a page template
- How to remove a class function from a plugin by using remove_action()?
- Change Header (Logo) Based on Login
- Hook for altering the content of all wp mails
- How can i list random author?
- Can you echo PHP code from a variable?
- Defining the value of a variable before a function?
- How to get custom minimum price in Woocommerce
- Dynamic URL Rewrite for Custom
- how to validate input field in wordpress generated with wpform plugin
- Error using wordpress functions inside a plugin class
- WordPress default post categories meta box widget
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Share my WordPress plugin for updating how?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- The function called on the wp head hook becomes null
- Submitting form to PHP
- How to detect 404 url and make this link underline or change background color?
- Make modification of add_to_cart button specific to single page
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- working code, not working – Plugin Dev
- How use get_plugin_updates() function?
- how override a define
- How to Unhook actions/filters in within Class in plugin
- How to disable/enable a plugin at a specific time
- Configuring default woo commerce login with modal popup
- How to wrap image tag into div for post only?
- Update User Meta Via Ajax
- Dynamically Modify s2member Options
- register_activation_hook doesn’t fire at all
- My ajax request don´t work and return 0
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- How to delete posts older than one year with post meta, post attachments and files?
- how to repeat taxonomy in different places on wordpress
- Create csv file in plugin
- Posting code inside the post instead of in the template file using shortcode
- Load wordpress enviroment for external content?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- How do add_action and WP_Query
- How to structure plugin in to functions?
- Can’t get custom user meta to show in header
- overwrite a plugin function in functions.php
- Pass strings to plugin function [closed]
- How to disable register and reset the password from WordPress admin panel?
- How to tweak a plugin without preventing it from updating
- WP Members additional fields on user profile [closed]
- Adminimize Plugin — Is there an alternative to limiting Editor to ‘Appearance > Widgets’ only?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Display Video as Post Thumbnail
- Notifications Bar on home page only
- How to Add Extra Text In WordPress Title Before Post Publish
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- WordPress Convert queries to slashes using function.php
- add to cart linking to add to cart page