Yes, there is a way to do this as described in this blog post. Due to the way WordPress loads files, you must use it in a Must Use Plugin and not the theme’s functions.php or a regular plugin.
I’m not the author of that blog post and don’t want to copy the script from there. The idea is to add a filter to option_active_plugins in which you unset() the plugin from the array you are filtering.
Related Posts:
- Woocommerce get cart total price in a number format [closed]
- How to tell if Jetpack’s Photon is active?
- Is it good practice to remove redundant plugins and themes?
- What is the purpose of the “Hello Dolly” plugin?
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- change plugin shortcode function [closed]
- How can I retrieve data within my widget
- woocomerce variations [closed]
- Whats the difference between Page Builder Plugins and Theme Builder Softwares? [closed]
- How to use load_plugin_textdomain from within a theme
- Syntax Highlighting Plugins and 3.2.1
- Problem Building a Simple Google Maps Plugin
- Is there a way to alter the order in which the plugins appear in the page?
- Display content from custom post type if match to main post category
- woocommerce_order_status_completed action hook not working [closed]
- How to update billing_email when user_email is updated [closed]
- Plugin Using get_the_content Causing Issues With Tag
- Multisite custom user activation emails – html
- Wp List Table – wpdb results are not displaying
- Change plugin main file name (that is currently in the repo)
- Edit Yoast SEO breadcrumbs output [closed]
- Woocommerce Payments and App Not Syncing
- Query all customers/users and check for duplicate information
- Hide Elementor Templates Menu from Admin [closed]
- How to remove plugin metaboxes from edit.php
- WordPress wp-admin/network/plugin-install
- How to pull email and name from Flamingo plugin
- creating a custom shop page display on archive woocommerce
- Can’t delete the two native plugins of WordPress
- How I can internationalize variables within the function _e () __ (), etc?
- How to put Word documents online so they can be downloaded, printed and read via a web page? [closed]
- How to add single function for all WordPress hooks
- How can I show a different theme for admin users? WP 3.8+
- add_action into another add_action not working
- General questions re: WordPress and WP plugins [closed]
- populating a form field with output from a custom plugin function
- Fetch Data from other website in wordpress (screen scraping)
- shortcode not return any thing in Gutnburg
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How do I add a plugin dependency to my customized theme?
- How WordPress core manage the plugin installation
- Flickering sidebar when scrolling page [closed]
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- Add action to custom Function
- “Allowed memory size” problem [closed]
- Hook Scripts and Styles in WordPress
- count the number of views of a post excluding own views
- Remove updates text on plugin or themes list page
- How to turn off automatic operation for Nivo Slider?
- WordPress slider that allows image, headline, text, and button?
- Shortcode not displaying HTML within the function
- Enqueue css to a third-party plugin template
- Preset custom fields
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- website shows blank when visiting from mobile
- Main content of site not showing, but does show when logged in to wp-admin
- No route was found matching the URL and request method
- Hide WordPress Site URL from Source Code
- Upload files with Q&A admin
- Plugin function in child theme
- How to access Post Archive created by Elementor?
- CRUD from WordPress to Business Central 365 through OData REST API
- Create multiple domains to download my custom plugin from wordpress.org
- Change the color of ACF Subtitle output background
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Deactivate sub-plugin when parent-plugin is deactivated
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Use WordPress Site For Email List Functionality
- WordPress showing fatal error on wp_set_object_terms line
- How do I keep children of certain parent menus expanded by default on a sidebar?
- Function get_locale always returns en_US in plugin?
- How do I add a textarea (multirow) option to my WordPress plugin?
- WordPress CPT Url metabox collection
- Get not the full path
- Plugin communication between sites that use it?
- Being hacked. Is there a list of WordPress security holes I can check against?
- Is a Virus detection plugin necessary?
- WordPress 4.1 plugin only save 1 field to database
- How to run my plugin only when the whole page is sent?
- WordPress custom posttype meta values doesnot save
- Why tinyMCE.editors doesnt work on tinyMCE
- Assigning a custom post type to a custom page
- WordPress include scripts and style in plugin page
- get_option include in my adsense
- woocommerce product categories in menu [closed]
- Book plugin to record books read and write my own reviews [closed]
- How can I make a website with dynamic features with wordpress?
- Advanced Ajax Page Loader and Masonry Grid
- On the same site, how do I send data from a plugin file to a theme file?
- How to add custom html to the Media > Attachment Details modal?
- Unable to access WPadmin, website down
- ‘Active lotteries’ only custom query for woocommerce lottery plugin and elementor
- Conflicting plugins break site
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- How to disable pagination in WordPress’ API results?
- How to change the version of block.js and plugin to the same of Package.json?
- Warning “Attempt to read property ‘feeds’ on null” using post update function
- How to Remove Default Category Metabox in Custom Post Types