Don’t touch the load order, change the activation order instead. A working example can be found in this answer.
Related Posts:
- unable to stop loop when using wp_insert_post with publish_post hook
- How do I ensure I can loop through every enqueued script and CSS?
- How do I create a custom role capability?
- Add a new tab to WordPress Plugin install Listing
- Admin settings update updating every time home page is hit?
- Global Objects and Public Methods
- How should you hook a session_start() when authoring a plugin?
- Init action hook running late after PayPal’s return url?
- How to Get a List of Sub Blogs without Using get_blog_list()?
- How Do I Load My Action Earlier Enough?
- Does WP fire delete_post when trashed posts are automatically deleted?
- Cron firing my function everytime wp-admin is visited
- How do I make specific plugin functionality apply to different sites in a network?
- How to add a link to WordPress Plugin install Listing
- WordPress multisite apply different options over each site from same plugin
- I can’t find where a hook is being defined in a plugin – Easy Digital Downloads
- How do I handle multiple Submit buttons in plugin’s option page?
- Hook for post permalink update
- Only allow plugin to be activated on root site of multisite
- Dynamically Override Fancy Title
- Get returned variable from a function to add_shortcode function
- What is the best way to overwrite /wp-admin/ms-delete-site.php
- Create a plugin to change the action to which a function is hooked
- Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
- Adding Automatically To In WordPress Using Filter Referencing?
- comment_email hook doesn’t seem to work for comment editor field
- Where should I store global data for my multi-site WordPress plugin?
- Customize multisite site creation with user data
- Add tab to profile.php wordpress plugin development
- Sharing a common set of image files for media library, across all sites within multisite
- WordPress Ajax callback function from plugin – OOP
- How do I change the initial quantity of a product in woocommerce?
- Where and how does WordPress store and use its plugin and hook information?
- Which are the hooks run before/after when a category’s deletion?
- How to set “Site Address (URL)” programmatically on WP multisite?
- edit_{$taxonomy} | Hook
- WordPress after content Hook & external template part
- How to associate an existing user to a site in a multisite setup programmatically
- best practice for query string values – get_query_var always empty for my value supplied in query string
- Modifying meta tags after doing ajax call in plugin
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Where to add hooks in a class
- Trying to understand order and frequency of action hooks firing
- How to use output buffering in WordPress hooked functions?
- Adding option to Gallery shortcode
- Plugin menu addition in multisite
- do_action and add_action on two different installed plugins won’t work
- template_redirect or admin-ajax.php?
- I have 2 plugins using the same wp_login action hook and one is not working
- Add a new confirmation page before saving
- how to invoke wordpress API from other existing PHP system
- How dynamic action login_form_{action} is working
- WP Multisite login not working on one subsite. Possibly cookies/ history issue?
- What happens when two or more plugins use the same hook?
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- Bug: Post needs to be updated twice when adding action for save_post hook
- flush rewrite rules after plugin update?
- When does save_post hook fire on post save/update
- Plugin does not add action
- Add child pages to submenu automatically
- After plugin activation hook
- How to replace default comments with custom HTML?
- hook filter after the_content on a specific page
- Is there an admin hook that will let me read GET variable before it’s too late to set the header Location
- Why enqueue styles on hook?
- Call to undefined function is_home() or any conditional tags
- Run command “composer install” when activating wordpress plugin
- Add a check box in Menu Settings
- add_action wp_ajax_ not loading in plugin file WP Network
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Ajax +wordpress onClick link redirect to new page and create html content
- Clean way to initialize plugin in newly-added site when plugin has been network activated?
- How to replace settings in WordPress plugin from a theme
- Redirect returning users to a certain page?
- How to edit wp-signup.php content using plugin
- Creating posts with links from a txt file
- Action / Hook when a new plugin is added
- apply_filters() and call_user_func() to define and call a function outside a class
- Getting Post ID at “stylesheet” and “template” hooks
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- Woocommerce get_term_by() in transition_post_status hook doesn’t works
- Limit get_next_post to posts from the same author
- Any way, hook to add content right before the “read more” link?
- Is there any way to get post meta from publish_post hook?
- Plugin Development – Call to undefined function comment_exists()
- Replace “content-area” of themes 404 page with plugin?
- Prevent plugin activation and add admin notice
- Unable to show a message after plugin activation
- Does WordPress have something like timer hook?
- Same header/footer in Admin, across all network sites in multisite
- Can I use a hook other than ‘init’ to handle form submissions?
- Template file structure , wordpress hook for altering the template
- How do I replace title with my plugin?
- Looking for Hook that is fired after a plugin or wp upgrade is installed/updated
- Woocommerce: block user removing cart item
- Apply function on all action hooks?
- How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?
- Send retrieve password notification email with custom HTML email template
- wp_head is not fired from the hook I have used in my plugin
- Trigger a JavaScript function based on the data fetched from Woo commerce hook