In your case (I have done this on a number of sites of my own), I would use a “dummy” must-use plugin.
This plugin, which doesn’t really need to say all that much, simply has a require statement to include the php code that I want to include from another location on the server.
MU plugins are active on all sites on the network, and the “edit plugin” interface does not interact with them. MU plugins don’t even need headers, and with no headers present, all that is shown is the filename — which again, you can make to say anything you want.
Another option is to add a custom require line within the wp-config file. This is very early on in the WP process, so you may be limited with what your custom code can do.
Related Posts:
- How to assign user a role if none is present when logging in
- What is the function to get plugin base url in multisite?
- Display All Non-Used Plugins
- How to add class in plugin only for network site?
- Show function to super admin
- Redirect to another page using contact form 7? [closed]
- How to Call Function From Separate WordPress Install on Same Server?
- Trying to output a “Most visited blogs” list in wordpress multisite
- How to append to title via functions.php for auto-posting plugin [duplicate]
- How to stop or remove an action being called inside a function of an extended class
- Missing Argument
- load_plugin_textdomain error
- How to override a plugin function wrapped in a class?
- Bootstrap Drop Down menu is not working
- How to Display a Plugin function (content) on frontpage using index.php
- Solutions to repost categories into multisite blogs?
- wordpress plugin is not activating from widget
- Theme my Login plugin, how to update fields
- Edit Yoast SEO breadcrumbs output [closed]
- Adding Shortcode to Text Widget
- Date calculations from 2 custom fields
- Media is not attached after import
- How can I disable the multisite feature of WordPress 3.0?
- NGiNX + PHP5-fpm + CDN Tools (plugin) [closed]
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Any recommendation on how to manage ads?
- Plugins not showing in Multisite dashboard
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Custom random quote widget breaks when used in multiple sidebars
- Using a function to change favorites listing
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- Display post lists in 2nd paragraph
- How to debug error message: Cannot modify header information
- Using a post-signup hook to get user details
- How to enable specific plugin only based around shop manager role?
- How to change constants in WordPress wp-config.php programmatically?
- Restrict media upload size by format
- How to use a class from another plugin
- Override Plugin Script Fucnction in WordPress
- How to display custom sidebar in wordpress 5.5.2
- Calling plugin function inside custom plugin for onclick event
- Generate pages from markdown files in github automatically
- There is any way to remove post-format filter? [closed]
- creating html reusable blocks via shortcodes
- get current date + 90 days and checking every day
- Install (enable) plugins on multisite, on localhost
- Adding a new field to the address field type in gravity forms
- Replacing a plugin function with a custom renamed function doesn’t work
- WordPress multi domain – redirect
- How to create an input field, and base the output on spreadsheet data? [closed]
- Facebook Messager Plugin
- How can I copy all users to newly created site on a multisite network in WordPress?
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- How to call WordPress function other files
- WordPress wp-admin/network/plugin-install
- Create a multisite network for an existing installation
- All sites themes functions.php have been changed
- “Micro-Site” Options
- External Domain on WordPress Multisite
- Customize permalink wordpress category id
- Conditional attributes and logic per product category
- Disqus deleted comments are syncing with wordpress but active comments do not
- Admin style for just one plugin in dashboard
- How to create user that has permission to create new sites on WordPress with multisite option enabled?
- Configuring Propel to Work with Multisite
- Setup page on first login on multisite
- WP Query. Is there a maximum size?
- Subdomains with almost the same content
- How to remove custom post type and add category and post name
- Uninstalling plugins across all sites
- Multiple domains issue
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- Grab WordPress Salt Data From URL
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- WordPress get_avatar function not correct working
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- WordPress metaboxes – textfield suggestion automatically populated
- bbPress plugin: forum lists not showing in correct order? [closed]
- “Master” WordPress Multisite – Database Sync
- Which file of wordpress manage plugins functionalities?
- Will these plugins work with wp multisite?
- User Signup in Multisite – Need Plugin or Advice
- How to create an option page for this simple plugin
- Difference and examples of esc_attr__() and esc_attr_e()
- How to set Noindex to all wordpress pages in a catergory?
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- What is @Action in WordPress?
- Improving the perfomance of a plugin action
- Display Custom Field Value on Admin Page Column
- List the authors that have written posts in a category
- Load Javascript from Plugin in One Page Only?
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- the_tags : can we insert a class
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Certain functions are undefined when called form mu-plugins
- How to over-ride a file in a plugin? [closed]
- Multisite for Multisite?