This is indeed bizarre. I think they first tried it with dbDelta
, found it doesn’t work with DROP
queries, and went with a straight $wpdb
query instead. They then just forgot to take out the dbDelta
stuff. It appears dbDelta
collects creation queries in $cqueries
and insert queries in $iqueries
, but silently ignores the rest. What a lovely function…
To be sure, you could ask this question on the book forum, hopefully the authors hang around there. Don’t forget to mention you first asked it here, so we get some publicity!
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best practice way to delete user meta data during plugin uninstall?
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Does plugin uninstall always put WordPress back into original state?
- How can I delete options with register_uninstall_hook?
- Is it possible to uninstall one plugin from within another plugin?
- How to check what plugins used to be on a WordPress installation?
- Global variables during plugin activation , deactivation and uninstall operarations
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- uninstall.php file in Plugin to clean DB
- How to remove traces from widget during uninstallation
- uninstall.php does not appear to trigger when uninstalling my plugin
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Custom message on plugin uninstall
- Does plugin’s uninstall.php file have access to the plugin ‘s object?
- Remove .htaccess portion upon plugin deactivation?
- Plugin retrieving results even after uninstallation
- Can my hooked uninstall class function access a global var declared in main plugin file?
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- plugin uninstall function drop the tables, but shows errors on admin
- How Do I Uninstall a Current WordPress Theme and Install a Fresh Theme
- Uninstalling IntenseDebate
- How to delete Crisp Chat plugin completely?
- How to remove links generated by SEO-smart-links?
- Scripts don’t enqueue after removing plugin
- Pass PHP variable to javascript
- Namespaces in WordPress – How do I initiate the main class?
- Notify commenters about new replies
- Problem with Search Results in WP (not displaying the full posts)
- Sub menu with a URL parameter and access the page
- How to restrict an entire WordPress site to visitors, but the register and login page?
- Is revealing just the AUTH_KEY a security issue?
- How to exclude a widget from page 1 of a paginated post
- Diagnosing plugin conflicts
- Is it possible to integrate WordPress *posts* and social media (Facebook, Google+, Twitter)? [closed]
- Licensing: Can I include SWFs without source in a plugin released on wordpress.org?
- Sort products without thumbnail in WooCommerce shop page
- How to create tutorials/book in WordPress [closed]
- Create or Update thousands of woocommerce products via PHP
- WP Paths in a Plugin – how to include
- How to export a list of all media urls? [closed]
- Last modified field for user profile?
- Update Option Error: Notice: Undefined index
- Why this global array is returning NULL from a callback function
- how do i remove posts from a WP_Query so the pagination is right?
- Information and Videos for Customers in the Backend [closed]
- Install Plugin via Code
- How to display custom sidebar in wordpress 5.5.2
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Delete query not working in plugin
- register_taxonomy and variable rewrite slug
- WP All Import – Execute Imports
- background images WP Supersized on homepage
- Caching RSS plugin data
- Limit the amount of words displayed by the Latest News plugin, or recommend an alternative [closed]
- Plugin to hide image in excerpt
- Is there a plugin that lets users request an account on the site? [closed]
- Custom license for WordPress plugin
- Image change on hover
- How to connect rating to individual comments?
- How to create plugin/ page that reads from database
- Insert ads below the title
- Plugin not properly prepared for localization
- WordPress Active Plugins
- How to add filter for wordpress plugin?
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- WordPress meta-box and checkbox-list
- Polldaddy doesn’t show up on own theme
- What plugins can I use to feature (affiliate) products on my blog (from Amazon.com)?
- Multiple Post Thumbnails Plugin – Need help with code
- Excluding specific post from custom next/previous theme function
- Problem with WordPress Elementor linked image and Round Corners Going Square Again
- Change language on website and change currency with url query
- How do I stop WordPress from recommending to install the following Plugin
- WordPress – estimate used product
- Revision featured image
- How can I send the mail once?
- Is it okay to make a plugin to the WordPress repo, but limit it’s actions to maximum N events?
- I need to show side menu in wordpress
- Woocommerce product variation price: How to change price dynamically through hooks
- Multisite converted to Single Site can’t add new plugins or new themes
- WordPress Product Detail and catalog
- Translating Website
- Category as Subdomain for One WP Install
- User upload fields
- How to enable Admins to see Plugins
- How to add wordpress plugins in along with my standalone theme
- Possible jquery / library conflict in plugin usage
- Delivering Page Templates With Plugins
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- How to change response of admin-ajax request?
- Plugin keeps saying needs to be updated and it’s in a constant loop [closed]
- wp plugin not working after website live
- How to add plugin to blog [closed]
- how to display the page content in popup window?
- Code snippet plugin not working correctly with Windows live writer and WordPress
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- wp_handle_upload – specified file failed upload test
- Split Million WordPress Post’s Into Multiple Database Server