The active plugins are stored in the ‘active_plugins’ option, like this:
array(
'akismet/akismet.php',
'hello-dolly.php',
);
On each page load, WP just loops through that array and includes those files. It’s up to each plugin to include any additional files that it may have.
When a plugin is deactivated, it’s just removed from that array. On the next page load, it won’t be included anymore.
No “un-including” required.
Related Posts:
- Who are the most trusted plugin developers? [closed]
- Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?
- WordPress plugin for mail subscriptions [closed]
- Let user subscribe to specific categories
- Is there a way to alter the order in which the plugins appear in the page?
- How can I implement a notification system in wordpress?
- How to make a customize role and view a specific plugins base on that role?
- Woocommerce plugin for minimum order and add-to-card-step
- How would I go about creating a user ranked post popularity page?
- Create a plugin from within WordPress
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- How to automatically add edit link on frontpage post of any wordpress theme?
- creating a plug in that would tap into save/update action of posts [closed]
- breadcrumb need to show all pages and subpages
- Possible?? Pull Plugin Property Data to a Theme’s Custom Post Type
- How to use existing hook in twentytwelve to all theme of wordpress?
- How to get Recent Post From Each Category with Thumbnail?
- Does WordPress do any internal caching if no plugin installed?
- Personality quiz in wordpress using a plugin
- Access remote SFTP server via WordPress login?
- Create survey that redirects to sidebar menu customized to answers
- How to put a maximum real-time users limit
- Using Taxonomies with Vote It Up plugin chart [closed]
- How can I create a navigation menu in the sidebar that can also act like a slider?
- contact form 7 captcha support anyother captcha plugin? [closed]
- Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece
- how to make wordpress remember my choice
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- I’m getting the following error: Fatal error: Uncaught Error: Call to undefined function oil_paint_regeneration() [closed]
- What are Seeds? [closed]
- WordPress plugin from own server
- How to avoid plugin name conflicts from the upgrade notifier?
- Show Similar Post Titles ( Similar to Stack Exchange )
- Avoiding plugin name collisions with WP updater
- Using standard backend elements in Plugin
- Auto-post to multiple sites like Posterous? [closed]
- Plugin development: how to create a form and get custom data?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- How to make my plugin theme-independent?
- Updating post meta for custom post types
- How to handle the Plugin Version on Update using Tortoise SVN and the worpdress.org Plugin Repository?
- Custom Shipping method not showing in checkout
- REST-API: extend media-endpoint
- I need to have two 1-5 star rating fields, only editable by admins. Which plugin should I use?
- How can I create a simple interface for my WP plugin?
- Where to put my global functions?
- Where does WordPress register default scripts like jQuery?
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- Front End Plugin for User Management [closed]
- Determine Registered Admin Menus
- Help With MySQL to WPDB Query Conversion
- code is working properly in Core PHP but writing coding in WordPress
- Check for security updates
- Custom plugin init action causing general slowness
- Is there a premium plugin for appointment reservation? [closed]
- How to get the permanent link in a plugin?
- Duplicate results are displayed in a custom plugin [closed]
- Need a wordpress plugin to show tutorial difficulty [closed]
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- custom uploader in the admin area
- Best/Correct way to add an option to a category
- Basic question about accessing scripts in my plugin
- I receive taxonomy id
- Loop in elementor custom widget not working
- How to access OOP plugin function inside themes or other plugin
- change or add css to theme from plugin
- Custom Fields for Page Edits
- How to get Facebook comment plugin in blog? [closed]
- How do I remove all traces of a plugin?
- Is it possible/advisable to set last stable version to previous version?
- How to make sure settings are not lost when plugin is updated?
- How can replace this url
- How to overwrite a plugin?
- How can I translate something in my class constructor of my plugin in WordPress?
- Define global variable in theme file and call that variable in plugin file
- SimpleXML is not working with xml response from external api
- Custom Plugin Update
- Custom wp_list_tables redirect on specfic page
- Hook to display element as product on category page
- Missing files in enqueue actions causes WordPress to reload
- I can’t use WP_Query
- Adding/ Removing actions for plugins
- WP Plugin: Print javascript in header
- Adding list of Indexes in wordpress document
- API Functions to Register and Show WordPress List Tables
- How to save default values into an option and delete those upon actvation and deactivation in wordpress?
- Ajax, jQuery and WordPress
- Add custom fields in the new and edit the site forms without touching the WP core
- Extend WordPress REST API with Scheme Pro Plugin
- How to submit the custom form data in database in WordPress without plugin?
- Simple Amazon Affiliate Plugin [closed]
- Embed php code in custom field of a plugin [closed]
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Helpdesk solution which is not form based
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to update changes to multiple sites at the same time
- Why am I getting an error when requiring a file in my plugin?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week