Your answer, Kyle, is the mu_plugins
folder. Create it within wp-content. Any php file put in here will be automatically loaded into ALL multisite blogs (or any non-multisite blogs).
This is a great area to put plugins vital to the site working, or shared functionality such as custom post types, taxonomies, filters, etc. Really anything! The main bonus here is when updated said “shared” files, you don’t have to do it in every single theme that utilizes it! It’ll be available for all themes, on all sites.
If you want to sort your stuff within mu_plugins
just put everything in a nice folder structure, and create a index.php
or load.php
in the root of mu_plugins
where you can load everything in.
From there, wp_enqueue_script
just as you normally would!
Related Posts:
- Multisite configuration fails with css/js files
- Redirect to another page using contact form 7? [closed]
- How To Add Custom Form Fields To The User Profile Page?
- Specific upload folder for PDFs in custom Post type in WP multisite
- How to delete post revisions?
- Add additional Network constants to wp-config.php dynamically
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- Can upload doc and pdf but not ppt – not permitted for security reasons
- Customizing wp-activate.php
- How do I transition multiple installations to a single Multisite installation?
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Best way to develop multisite and deploy on another server?
- How To Provide Sub-Blogs Their Own Domain Names?
- Removing My Sites menu from Admin
- Prevent Deletion of Blogs
- NGINX Multisite Rewrite rules
- How to Set up a Multisite WordPress?
- Multisite, turn off “create new site”
- wp-admin slow in multisite
- Multiple Domains and Subdomains Using Multisite Installation
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- What are the differences in capabilities between the super-administrator and administrator?
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- Network setup tab is not shown under Tools
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- How To Modify New Sub Blog Immediately When Super Administrator Creates It?
- Subfolder multisite issue. Themes and plugin files 404
- How to prevent first post and first comment on WP MU?
- Subdomain and subdirectories together in one installation
- Creating Admin Options Page where users can make changes to a theme
- Limit multisite/network site names to a property of the user
- How do I maintain static directories on multisite subdomains?
- Why are images not displaying?
- Replacing the default content created while the site creation
- WP Multisite Static Frontpage
- Preview posts returns 404
- Multisite on Rackspace Cloud (ubuntu lucid)
- How to stop unlink images when remove a site or user
- What should I do? A multisite, a single website or many websites? [closed]
- Multiple homes for multiple languages [closed]
- WordPress multisite installation broke menu links
- Hosting a seperate wordpress project on localhost
- Multisite development environment
- How to host blog on separate domain from main site
- how to add custom css and js on wordpress post editor directly without using .php file
- Pushing stored procedure to a multisite database in WordPress
- How does WordPress determine which multisite the user is on from the URL?
- Multisite multidomain
- How to recover deleted site in WordPress Multisite?
- WordPress Multisite domain mapping with different IPs
- CSS Minification
- WordPress stuck in deleting user
- How can I add custom meta on signup page and pass along to be used after blog activation?
- Migrating static site to multisite with multiple domains and subdomains
- Multisite domain mapping breaks CSS
- WordPress multi-site, developing locally and syncing live changes
- muliple wordpress multisite installs on the same sever
- How To Run Multiple Multi-Site Networks On Same Box [closed]
- Replicate network plugins without having to configure it for each subsite?
- Create a CSS file in plugin folder when theme is activated
- Different Domains in Multisite Setup
- How to organize my js files
- How to publish some default pages in Multisite creation?
- How long is “as long as possible” in wp_cache_set()?
- more tables created when create a new site
- custom css and javascript not working on page defined as template?
- Pros and Cons of Post Types vs. Multiple Blogs
- Multisite subdomain-site redirects to primary site
- How to sort posts by active category in WordPress?
- Custom css – WordPress Multisite
- custom email validation using javascript api with elementor pro and code snippets
- custom field – changing an element or background of id div – different versions not working
- In Multisite: Site / Blog IDstill exists after deleting site
- Multi-site customization
- Delete all blogs on multisite
- Site w/ Addon Domain doesn’t show CSS
- Is there a built in method to protect pages?
- Is there a way to add a function that will get run after a blog is created?
- cannot access subsites in wordpress multisite
- Pointing multiple subdomains at the same WordPress Installation
- Set static page as default front page on newly created sites in multisite
- Create a Network of Different websites with wordpress
- Using common slider in all sites
- WordPress Multisite platform for different city for single db
- Should I go for Multisite or separate WP Installation?
- Making custom pages (with an example to explain the goal)
- Integrating WordPress for blog and other content pages in a web app
- Could not find site error
- WordPress Multisite
- Particle.js not loading in WordPress Gutenberg
- How to reliably flush rewrite rules on multisite?
- Using wp_insert_post() with Networking enabled
- Sharing Dynamic Sidebars across Multisite Blogs
- Multi language site with same content
- Prefix Multisite Directory Structure
- Setup page on first login on multisite
- Custom Background by Page IDs
- Check if current site ID and value exist in WPDB
- User registration on wordpress multisite
- WordPressMu network with private sites