Yes, you can use a /wp-content/mu-plugins
folder for
- single file
- autoloading
plugins. The only thing you will have to do is to use a plugin header comment in this file:
<?php /* Plugin Name: I am a MU-Plugin */
Then you will find a link on top of your /wp-admin/plugins.php
page that says
“Must-Use Plugins”
where you will find the list of mu-plugins. Those plugins can not be deactivated by an administrator or anyone else — only someone having access to your servers filesystem will be able to deactivate them by removing them from this folder.
Note, that plugins residing in subdirectories in this folder will not get loaded.
Related Posts:
- Serving precompressed content with Brotli on Apache
- How can I avoid code duplication for a blog with lots of source code?
- How to rename wp-includes folder?
- What’s the correct way to include files in WordPress TwentyTen theme with it’s own jquery scripts and css?
- ABSPATH not working! Any idea why?
- Get current user data from external PHP page
- External system integration with wordpress
- Why does get_template_part() break variables?
- How to pass variables with get_template_part?
- How to include core files into plugin
- How to check if txt file exists inside template folder?
- What’s the best way to ‘include’ a file in WordPress?
- locate_template function – File not getting included
- Can not include file from plugin into theme
- Include tags from array, ignore the rest in get_the_tags
- PHP files included within functions.php don’t work from admin area
- Wp Enviroment problem with included file
- Having trouble linking to file using relative path
- How can I include an external file in a post or page?
- Including php file in directory above WordPress installation
- add_feed failed to open stream
- Load content From Include File within plugin
- including Zend Gdata library path error
- What about “inc” (include) files and Child Theming? Is it possible?
- Make changes in /includes/http.php update safe
- Need to override file included in parent theme
- Class works in Admin, not found on Front End
- if statement parent page for child pages
- add_action outside a plugin
- Add page as static html into another page
- Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin
- C++ #include guards
- Inserting a PDF file in LaTeX
- How do I include a JavaScript file in another JavaScript file?
- Random not declared in scope
- How to include file in a bash shell script
- get_template_directory_uri pointing to parent theme not child theme
- Passing variables through locate_template
- Should we use get_template_part() in functions files instead of include_once?
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Include WP_Query in my own PHP file?
- Include a external PHP file into a WordPress Custom Template
- Include files in functions.php
- What is the right way to include a wp-admin file in your theme?
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- Why does including a file in theme’s functions.php not work?
- WordPress “include TEMPLATEPATH” or?
- Using Includes in Templates in Document Head
- How to include class from addon after to be sure one class exists in the main plugin?
- Passing variables to template parts
- What is the most efficient method for loading widgets in functions.php
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Conditional Ajax inclusion
- Including an External File in a Post (and Using Processed Paths)
- integrating external php library into wordpress- the right way
- the_author() not working outside the loop
- Put CSS inside a PHP file and include it the right way
- How to query posts to include specific pages of one post type, and all pages of another post type?
- Include content from one page to another
- include wp-blog-header not working on MAMP
- using `require` in my functions.php breaks the site
- How to include a post type in the admin/backend?
- Calling a Function in Functions.php from an external PHP script
- code is skipping a div
- get_option() not returning expected value from plugin
- include php file if page_id matches
- Firebug says jQuery is loaded but $() and jQuery() are not defined
- Correct and safe way to include php content in my page
- Conditionally include files in functions.php?
- php include not working in custom page
- Using WP functions such as the_title() in an included php file
- include specific Pages to wp_list_pages with filter
- require_once not working
- query_posts doesnt show pages with given ID when post_type => page
- can’t access some WordPress function from my plugin
- Pull in an “Include” file based on a WordPress Category ID
- WordPress functions.php conditional include another functions file
- I’m including a html file in my plugin, but it can’t find its css or js files
- How to include files in the loop via ajax
- How do I fetch a data from an external database into my wordpress homepage
- How do I fetch a data from an external database into my wordpress homepage
- Creating Action Hooks For Automatic File Inclusion
- how to include js in widget?
- Theme parts path location dump
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- How do I / Is it possible to execute an external PHP file / function inside WordPress?
- show Visual form builder in the front end
- Include paths and functions for external scripts
- post content includes and seo vs. duplicate content
- php “use” not working in template [closed]
- How to include a php file in every post and page [duplicate]
- Adding a wp_head hook from an included PHP file
- White Screen When Includding A Folder With PHP Files
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Javascript file not included only on home page
- How to define category ID in an array?
- WP-Include rewrite directory
- WordPress Includes mejs 404 error