50 is relatively not much, and you should create them on the plugin activation hook.
For more then 100 (just pulled the number out of my ass 😉 do your own testing on some slow shared hosting) I would create a settings page and initialize the DB from there. The reason is that users do not expect plugin activation to take long and might think that something is wrong, but there is no way to have a kind of “this might take a minute” message at activation time.
Whatever you are deciding to do, don’t do it on the init
hook as it is used by front end, do it only on hooks that are related to admin.
Related Posts:
- add_action priority and taxonomy used in plugin
- Inserting Taxonomy Terms During a Plugin Activation?
- How to Get Current Custom Post Type Associated Taxonomy Term
- How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?
- term_exists() returning NULL on term that exists
- Non editable custom taxonomy
- How to create taxonomy without using register_taxonomy () function
- How to display custom taxonomy and terms using/creating plugin template
- What’s the difference between term_id and term_taxonomy_id
- How to redirect to settings page once the plugin is activated?
- How to output message during plugin activation
- Prevent network activation of plugin
- Using wp_cron with custom time interval and the register activation hook
- How to Make a Category Always Selected?
- Call activation hook multiple times
- Use register_taxonomy() in register_activation_hook()
- Only allow plugin to be activated on root site of multisite
- Display the taxonomy name of the current term
- Rewrite Point Doesn’t Work on Custom Taxonomy
- why creating tables using $wpdb is not being executed while installing plugins?
- Override pluggable functions in a plugin?
- can I prevent WP users (even admin) from deleting custom categories?
- Plugin activation error due to unexpected output
- If a function requires add_action(‘init’) how can I run it only once on plugin activation?
- Settings not set after calling register_setting()
- Get Objects While Deleting term
- Custom plugin: Loop through taxonomy types and update columns for all types?
- Custom Taxonomy to dropdown box on adminside wordpress
- $_FILES empty on created_{taxonomy} and create_{taxonomy} yet is is not on edit_{taxonomy}
- Notice: Trying to get property ‘term_id’ of non-object
- Why is the WordPress taxonomy not registering?
- Translate slug in WPMU with PO files
- Ordering taxonomies by rank
- wp_get_post_terms Order by not working
- Adding predefined terms to a taxonomy
- Add Link Category on Activation?
- WordPress Plugin Activate / Deactive Failing
- Ajax is not working in a loop
- Taxonomies within plugin invalid
- Let plugin check if taxonomy is already registered by another plugin
- Multiple array for post_content on plugin activation
- Class cannot be found, but it’s available in the file, I get: Fatal Error: Uncaught Error: Class ‘Blocks\Base\Activation’ not found
- modify show UI of a registered taxonomy
- How add default term meta to prevent an error?
- Add location tag to wordpress posts
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Plugin can’t be activated [closed]
- Clean way to initialize plugin in newly-added site when plugin has been network activated?
- Activate / Deactivate plugin
- Add default custom taxonomy to plugin activation
- WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
- Custom Plugin activation error in Multisite
- Javascript not being loaded only in custom taxonomy template
- wordpress does not see the correct custom taxonomy hierarchy
- set a custom post type to a taxonomy term programmatically in metabox
- How to store in the database directly the translation?
- Making Woocommerce optimized for more than 500k products
- Unable to show a message after plugin activation
- Is there better way to do this without duplicating queries?
- set_object_terms for custom taxonomy in custom post type – not working
- Refresh or redirect page after activate my plugin
- I can install my plugin in localhost but not in my server
- edit-tags.php in plugin admin menu hides when is the active page
- Get term_id for each instance of custom taxonomy
- WordPress plugin tables become corrupt
- How to show custom taxonomy child posts through shortcode in WordPress
- Deactivate plugin on registration
- If I want to create new taxonomies (e.g. Project / Documents / Etc…) is it better to create them in the theme’s functions.php or within a plugin? [duplicate]
- Is the only way to add taxonomy terms via an admin panel?
- how can a plugin return an error message on activation?
- WordPress Breadcrumb Taxonomy Display
- Is there a canonical way for a plugin to install a mu-plugin or drop-in?
- My activator class isn’t running the code inside
- How to boost WP custom post REST API GET queries by custom taxonomies
- Display term description on hover using get_the_term_list
- stdClass::$labels /wp-includes/general-template.php undefined
- Yet another wp_insert_post infinite loop. What is wrong?
- Data Validation, dynamically generated fields (select for example)
- Initialize class inside plugin
- Thumbnails for media Library images
- How can I add the custom taxonomy categories to the posts and pages?
- How to Rewrite WordPress URL for a Plugin
- How can i call from custom fields to the category editor?
- Add query string variables to all hyperlinks URL matching a specified domain
- WordPress multiple user roles accessing on their information on one site?
- loop and in admin header problem
- Get post terms with hierarchical relationships
- How do I replace title with my plugin?
- Remove image in post when it’s removed in media library
- Virtual Page with Registration form
- add short code not working
- Practical Solutions to HTML5 Video on WordPress
- An adiitional function fires on my AJAX submit
- Plugin options page – save two related options as one entry
- Create and style menu
- Create pages for authors
- Projectmanager Internal Link Code Location
- How do I create Widget within plugin that uses its own class?
- Select options not reloading after form submit
- Get URL of Post You Are Editing