You need 3 steps:
1.Creating a term in wp_terms with ID is 1
2.Insert a term_taxanomy into wp_term_taxonomy with term_id is 1, and taxonomy must be category
3.Insert a term_relationships into wp_term_relationships with object_id is 1 and term_taxonomy_id is 1
Run below code in PHPMYADMIN to re-create this category!
INSERT INTO wp_terms (term_id, `name`, slug) VALUES (1, 'Uncategorized', 'uncategorized');
INSERT INTO wp_term_taxonomy (term_taxonomy_id, term_id, taxonomy, parent) VALUES (1, 1, 'category', 0);
INSERT INTO wp_term_relationships (object_id, term_taxonomy_id, term_order) VALUES (1, 1, 0);
Related Posts:
- Is there any plugin development framework
- How do I add CSS options to my plugin without using inline styles?
- Plugin – create a page without it appearing in the side menu
- Is wp-content/install.php a Drop-in?
- Handling results from data hooked into admin_post
- How to write testable classes in WordPress
- get_template_part from plugin
- Edit or Remove Plugin .htaccess Using The Admin Panel
- WordPress scheduled task is called but not executed
- How to create collections that are edited in admin?
- Get list of available wordpress actions
- How can i list current author’s categories?
- How can I call “preview post” from wp_remote_get with authentication?
- When is it too late to call the action wp_enqueue_scripts?
- Use js script from one plugin in another plugin
- Rest Api How to get results of child categories with one api call
- Build dynamic page from cURL (HTML page) response with plugin
- How to store accumulate multiple option values in a single array using Options_API
- Add Post and Comments menu no longer visible
- template_redirect for single posts w/ custom fields
- can I prevent WP users (even admin) from deleting custom categories?
- Proper way to hook wp_get_attachment_url
- Why doesn’t flush_rewrite_rules run on plugin activation?
- Finding the paragraphs in content
- Namespaced action and filter tags
- Adding Dropbox dropin js using wp_enqueue_script
- Proper way to pass credentials in a custom login form to avoid “headers already sent”
- WordPress Multisite with Azure B2C redirect_urls after Login
- WordPress Block Development – trouble importing from @wordpress/icons
- WooCommerce Admin Reports : Get custom product report based on date range
- Clearing caches on plugin uninstall
- Auto gallery from folder contents
- Adding (blog-specific) links to “My Sites” admin page
- How to enable sorting in custom media uploader in plugin
- How to insert text at the current cursor position in Gutenberg?
- How do I apply a custom discount to individual product total prices depending on their categories on the cart and checkout pages of WooCommerce? [closed]
- How to fix this URL error in WordPress ” data-wplink-url-error=”true”>
- Unit testing a plugin with a theme dependency
- Edit Images From the Front End without Access to WP Admin
- How to remove or add submenu item on plugin activate or deactive
- Update problem with update_option() in combination with register_setting()
- Why does my widget break other widgets?
- How do I add a text field under the activity texarea? [closed]
- Help writing custom function with rewrite endpoint that generates a page from dynamic content
- How to make “upgrade safe” theme for a plugin?
- Function/Class to list categories with checkboxes
- Is it possible to enable and disable wp debug from functions.php?
- Default settings aren’t used
- Remove an action by extending class and replacing it
- making a plugin that moves other plugins wp_head actions to wp_footer
- Is hint for translator compulsory while internationalizing a string containing variables?
- Settings API: Setting default option via ‘get_option’ fails
- Setting a JSON web token from a secondary api as a secure cookie on WordPress
- How to redirect to login page when user not loggedin on a particular page
- How to use nonce
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- How do I validate extra pin field on my WordPress login form page?
- How to create a wordpress widget that dynamically changes according to the page
- Does WordPress default CSS have Grids?
- Plugin to create Posts and Forums then choose category and parent forum
- Checking for existing title in custom db query not working
- Adding Permalink to Slides with ‘Simple Nivo Slider’ plugin?
- How to add a new taxonomy link to the admin menu
- Many Single Sites, One Plugin directory – adjust plugins_url()
- insufficient permissions; coding an action for plugin governed by custom capability
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- Make a php array load faster
- Count products with custom metadata field in an order
- Include external po file for 3th party plugin to theme
- Adding the image selector/uploader to an admin back page
- setTimeout not working in jquery
- Woocommerce Product finder feature on home page
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?
- Javascript scroll eventHandler only working when I’m logged in in WordPress
- WordPress Reset password Strength set to medium
- Add language localisation to javascript alert?
- redirect_to how to make it simply work with get parameter or similar?
- cancel place order proccess
- How I can give access to my custom plugin for editor roles user?
- Testing Plugins for Multisite
- Filter get_user_by instead of replace function
- WP: adding Javascript to specific woo commerce pages
- Calling dynamic_sidebar in plugin gives error
- How to add chunk of php, html, and sql code to variable an append to $content
- edit-tags.php in plugin admin menu hides when is the active page
- How to create a custom search form and handler?
- Best way to handle a form post in plugin
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- Method to retrieve category names and IDs only as an array?
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Fixing plugin for wpdb::prepare
- Remove text from confirmation message
- Can I use an array to create multiple tables?
- Using “add_image_size” to register custom image sizes inside plugins not working
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?
- WooCommerce adds a newline symbol (\n) between email recipients
- Upload to a specific media folder created by FileBird Lite
- Adding a navigation with wp_nav_menu() to a custom block in the site editor
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- Ninja Forms: Front-End Forms, Post ID?