Thanks to https://salferrarello.com/functions-plugin-mu-plugin-wordpress/
I was able to confirm when Code Runs
All of the code across the different files of WordPress can be thought
of as one big list of instructions. The code is run line by line
starting at the beginning of this list through to the end of this
list. The order is essentially.
- the WordPress
- core code
- mu-plugins
- plugins
- functions.php
- the theme code for the specific template being displayed
But it doesn’t answer the order MU_plugins are run (alphabetical, order of importance?)
So my currently solution was to add
include('/my-functions.php');
to any MU-Plugin file that uses ‘../mu-plugin/my-functions.php’.
It works.
Related Posts:
- Is there any way to get all the name or slug of template parts used in a page?
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- how to force tag page layout to use same as search layout?
- Proper Failure of Plugin Activation
- Redesigning Custom Post Type “Add New” page
- Notify Admins about Plugin Merge
- Is there any record of installed plugins in the database?
- Adding Featured Image in Post List
- Why does including a file in theme’s functions.php not work?
- WooCommerce – Call to undefined function is_woocommerce()
- Custom headers for the WordPress plugin directory
- OEmbed from Pinterest
- How can I add a custom header to a custom template in a plugin without using the theme folders
- Trying to avoid including wp-load.php
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom values are not translated
- Make the plugin directory recognize new version numbers
- Should I use RIPS tool to test my themes and plugins?
- Add Top-Level Menu that opens URL
- Change the name of an installed plugin
- Issue with post request to admin-post.php
- action-scheduler vs wp-background-processing
- Accessing GET variable named ‘error’
- download_url() appears as grey icons
- Plugin not appearing after uploading it via FTP
- How can I add an options page for my class based plugin?
- Sending WP posts to external API
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Changing labels of status filters for post grid
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Any hook for pre-plugin-update -either bulk or single plugin update
- wp_create_nonce function doesn’t work inside a plugin?
- Own plugin corrups plugin-activation
- wordpress plugin is not activating from widget
- When to load auto-login code?
- CSV file generation failing
- finding whether request is for post, and post id
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Prevent duplicate records in plugin table
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Owl Carousel2 image not displaying full width when using Stretch row and content, Stretch row and content(no padding) in wordpress
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Get Time Taken By Each Action Hook in WordPress
- How to replace WordPress Media Upload Window with user’s device window?
- Buidling a translate plugin for wordpress
- Force language in translate function
- wp_footer hook only working on homepage not in other pages
- How do I combine a theme with a plugin
- Use wp-config.php constants in all files of plugin
- Prevent direct access to WordPress plugin assets?
- Using ACF default value to autoincrement a number field
- a href adds default URL with the given echo URL
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- How to automatically add edit link on frontpage post of any wordpress theme?
- plugins_url() works everywhere but wp_reqister_script()
- Integrating boxtal PHP library into a custom WordPress Plugin
- Images under 1MB are not being compressed
- Sanitize $_GET variable when comparing
- Where can I save plugin data?
- show my own admin_notices after a post has been published
- How to add a WordPress Nonce for this form to avoid CSRF
- Overriding current theme files via plugin
- How to create a plugin that includes all the other plugins?
- How to add update function to plugin without adding it to https://wordpress.org/plugins/ [closed]
- Plugin option default value
- How to edit link for comment count
- Integrating Custom Database with WordPress
- How to get the custom field value using SQL query
- specific rows style for in custom list table using WP_List_Table
- How to add the search page link to the anchor tag?
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- Creating one user access account for all the multiple sites
- Using id to show item
- return bbp_get_topic_author_id as integer
- I am Getting Sorry, no posts matched your criteria on form submit only for certain page [duplicate]
- wpdb update method is updating but not refreshing the current page data
- Shortcode and WP query using category attributes
- Securing a plugin pop-up window
- Dynamic input fields in WordPress Plugin
- Custom role not listed
- Is admin section completely customizable in terms of styling?
- Better way to run heavy scripts using WordPress database
- how to check plugin name unique or not?
- Change default url to plugin custom post type
- Creating a user ‘add custom field’ section
- WordPress ajax not working in registration
- How to show post attachment image
- Can a developer adopt a plugin marked as “not updated in over 2 years”?
- Making a Custom Post Type Publish Loop
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- Someone Comment 1000 times in a Day in My WordPress Site, What Can i Do
- get_option returning a different value from what’s saved
- Plugin: Custom menu item problem
- Getting warning of Missing argument 2 for wpdb::prepare()
- Jquery post responses 500 error after some time and lastly an 503 error
- wp_handle_upload – specified file failed upload test
- how to make wordpress remember my choice
- wordpress admin-ajax bad request 400
- public custom posts not showing in my wordpress plugin