This seems to be the way:
add_filter( 'option_active_plugins', 'disable_plugins' );
function disable_plugins($plugins){
return []; // you can define specific plugins you want to load here.
}
Related Posts:
- What is in media-template.php, and how does it work?
- Change Password Hint
- Best way to extends core classes in theme?
- Question about the template-loader.php file
- How does WP detect format type (and can I make use of this)?
- How to start a script from cli within wordpress
- Remove annoying WP Adminbar CSS
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Huge debug.log because of “undefined offset in media.php”
- Are all hooks/functions tied to Kses meant for sanitization?
- Location of core code for database connection and get_header
- Admin submenu issue with PHP not detecting two strings as equal
- Usage of var keyword in the core
- Use wp_head hook on template page
- Custom WordPress Core upgrade through wp-cli
- How can precision be improved for the debug log timestamp?
- change div text and link for logged in users
- the_date() not working
- How to return number of found rows from SELECT query
- WP-API v2 Custom Endpoint Response Formatting
- Extract the first oembed url inserted on the content of a post
- WP API V2 returning Invalid User ID
- Why does $_SESSION only work when I am logged in?
- How to make an meta_query optional?
- How to show only parents subpages of current page item in vertical menu?
- Limit the_excerpt with max of x characters
- How to use copy() function and paste file in /wp-content/themes directory
- How can update custom meta for all posts
- Sanitize get_query_var() url parameters
- PHP/MySQL issues when running WP on EC2 cloud [closed]
- How to safely remove the footer (twentytwenty)
- ajax_object is not defined when ajax calls the function
- How do I fetch all comments per post via WP REST API?
- When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?
- wp_insert_post not working
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Using More Tag in Combination with the_excerpt
- combine Code 1 with Code 2
- Custom Form Processing Issue
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- Reordering Buddy Press profile navigation [closed]
- How can I get the total number of installed importers?
- MetaBox body is not showing (the callback function)
- wpdb php get_var query to get ID for URL image doesn’t work for ID over 999
- Change title only in dynamic page
- How to make products with no cost in WooCommerce
- Pass php dynamic variable to shortcode
- Insert term and child term from frontend
- two columns of posts on homepage, one of them “favorites”
- Help with .htaccess and Login with Subfolders
- Do wordpress create a new file for each new post?
- Catchable fatal error on 3.6 update
- AJAX – Returning Two JSON Objects with One PHP Function
- Can’t Query Custom Table Using $wpdb Method
- How can I access string value in an array?
- Defined WordPress Memory Limit to Unlimited
- Why in my theme I can’t see all the statics content under the posts?
- WordPress gallery shortag
- Errors after upgrading PHP to 7.4 WordPress
- How to make jquery count down timer function manually editable
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Redirect a WP created page to a manually created PHP file inside theme folder
- How to hide posts of a specific custom category in WordPress?
- Output category list inside array
- How to make a conditional statement within $output in shortcodes.php?
- Extend Menu Walker Output
- How to debug failed changes to posts?
- WordPressUser Submission Form
- Strip from or something better?
- Add “alt” Attribute to GD Star Rating Tags
- calling admin-ajax.php from admin-ajax.php
- Inline related post Gutemberg
- wp_query with multiple arguments with AND
- switch_to_blog() + do_action(‘generate_footer’) not working in multisite
- how to replace h1 entry title with h2 in category pages only
- Why is values of a global variable returning blank when inserted into database
- How to return html as a string from php for WordPress
- Show Gutenberg facebook embed with a custom theme
- Add code to the header of posts by particular author
- Running a PHP SQL script on a wordpress page
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- How to apply ‘add two more posts’ to media content?
- How to disable sub menu items from being created?
- Access to “My Site” is missing from the admin bar
- Unable to insert current username into custom table through html form
- add ‘publish metabox’ to Gravity forms edit page/form area
- load a wordpress page into another wordpress page using iframe
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- How can i iterate through this shortcode array?
- Using get_theme_mod with checkbox to display content
- How do I prevent a folder from reappearing in my home directory?
- Styling admin page rows in order of importance (checkboxes)
- On selecting shortcode generate selected shortcode table inside page editor worrdpress
- Using existing widget code! [closed]
- Pagenav Not appearing on custom Template
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- PHP Puzzle: Unique Styles with PHP loop
- SQL – How to echo out inside of where statement
- How to create different templates for woocommerce single-product.php?
- How can I update a value of a field depending on outside source?