{"id":5034,"date":"2025-11-05T18:04:39","date_gmt":"2025-11-05T17:04:39","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/disable-plugin-for-debug\/"},"modified":"2025-11-05T18:38:34","modified_gmt":"2025-11-05T17:38:34","slug":"disable-plugin-for-debug","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/disable-plugin-for-debug\/","title":{"rendered":"Disable Plugin For Debug"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Module Disable Plugin For Debug: test your WordPress site without breaking everything<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">When you're working on a WordPress site in production, it's never pleasant to have to deactivate plugins just to do a test. This can disrupt visitors, break functionality or impact SEO. To solve this problem, we've developed the <strong>Disable Plugin For Debug<\/strong> in <strong>WPMasterToolKit<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This module allows you to <strong>temporarily disable all or some WordPress plugins for your use only<\/strong>based on your IP address, a cookie or a special link. So you can debug your site without affecting other users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugins can Disable Plugin For Debug replace?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This module replaces plugins such as <em>\"Debug Mode<\/em> or <em>\"Plugin Organizer<\/em>which allow you to control the loading of certain plugins. What's the difference?<br><strong>WPMasterToolKit<\/strong> integrates this function natively, lightly and above all conditionally - without burdening your site or executing unnecessary code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An intelligent approach with MU-plugin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Technically, this module creates a <strong>Must-Use Plugin (MU-plugin)<\/strong>.<br>This type of plugin loads before all the others, allowing it to <strong>check the list of active extensions<\/strong> as soon as WordPress starts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your settings, the module can :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Load only the plugins selected for the debugging session ;<\/li>\n\n\n\n<li>Ignore all others, without actually disabling them in the administration.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Visitors continue to see the site with <strong>all active plugins<\/strong>while <strong>you<\/strong>Thanks to your access conditions, see a lighter version ideal for testing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Flexible activation conditions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can choose how the module recognizes a \"debugging session\":<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>IP address<\/strong> activates debug mode for a specific IP (often yours);<\/li>\n\n\n\n<li><strong>Cookie<\/strong> activates the mode via a cookie stored in your browser;<\/li>\n\n\n\n<li><strong>IP or Cookie<\/strong> (<em>dual mode<\/em>): more practical for multi-device testing.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is also possible to generate a <strong>single debug link<\/strong>.<br>This link contains a secure token which, once opened, automatically adds the debug cookie to your browser. From then on, your debug session is active until you close your browser.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choose which plugins to keep during debugging<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The module displays a complete list of the site's plugins - both active and inactive - and allows you to check off the ones you want. <strong>keep active in the test session<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can activate only <strong>WPMasterToolKit<\/strong> and <strong>Elementor<\/strong> to test a page layout ;<\/li>\n\n\n\n<li>Or insulate <strong>WooCommerce<\/strong> to examine a bug without interfering with other extensions.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This granular approach provides a <strong>total control over the debugging environment<\/strong>without ever altering the actual configuration of the site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use the Disable Plugin For Debug module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Activate the<\/strong> in WPMasterToolKit.<\/li>\n\n\n\n<li>Go to <strong>WPMasterToolKit \u2192 Disable Plugin For Debug<\/strong>.<\/li>\n\n\n\n<li><strong>Select condition type<\/strong> (IP, Cookie, or both).<\/li>\n\n\n\n<li><strong>Copy the debug link<\/strong> or enter your IP.<\/li>\n\n\n\n<li><strong>Select plugins<\/strong> to keep active during the session.<\/li>\n\n\n\n<li>Open your link or visit the site from the configured IP - you're now in private debugging mode!<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Visitors, on the other hand, continue to see the full site, unchanged.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"547\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/11\/image-3-1024x547.png\" class=\"wp-image-5051\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/11\/image-3-1024x547.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/11\/image-3-300x160.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/11\/image-3-768x410.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/11\/image-3-18x10.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/11\/image-3.png 1228w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Our technical choices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We opted for an architecture based on a <strong>MU-plugin<\/strong> autonomous :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This plugin is automatically copied into the <code data-no-auto-translation=\"\">mu-plugins<\/code> when the module is activated.<\/li>\n\n\n\n<li>It acts via native filters <code data-no-auto-translation=\"\">option_active_plugins<\/code> and <code data-no-auto-translation=\"\">option_active_sitewide_plugins<\/code>which guarantees perfect compatibility with WordPress multisite.<\/li>\n\n\n\n<li>No additional SQL queries are performed, and the system consumes no resources when deactivated.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, the URL parameter used for the debug link (<code data-no-auto-translation=\"\">?wpmtk-disable-plugin-for-debug=<\/code>) is <strong>filterable<\/strong> via the hook :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\" data-no-auto-translation=\"\">apply_filters( 'wpmastertoolkit\/disable-plugin-for-debug\/debug-param', 'wpmtk-disable-plugin-for-debug' );\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This allows developers to <strong>customize parameter name<\/strong> according to their needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The module <strong>Disable Plugin For Debug<\/strong> WPMasterToolKit is a real revolution for WordPress developers and integrators.<br>With it, you can :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test configurations without disturbing your visitors;<\/li>\n\n\n\n<li>Quickly identify the source of a conflict between plugins ;<\/li>\n\n\n\n<li>Simulate staging environments directly on an online site.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">An elegant, secure and 100 % solution that respects WordPress best practices.<br>A must-have for any WordPress site in production.<\/p>","protected":false},"excerpt":{"rendered":"<p>The \"Disable Plugin For Debug\" module in the WPMasterToolKit plugin offers an effective solution for testing and debugging your WordPress sites without disrupting the user experience. It allows you to temporarily disable plugins based on specific conditions such as IP address or cookies, which is ideal for working in complete confidentiality. By centralizing deactivation in a single module, it simplifies the debugging process for developers. It offers customized filters and integrates securely with the must-use plugin system, ensuring reliable use without risk to the site. This module is an invaluable asset for maintaining a high-performance WordPress site.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-5034","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/5034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=5034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}