<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Can ‘Test Mode’ be forced?

Replies: 1

I’m developing a website and trying to keep development to my local and staging environments and use Test mode during all development in these environments.

Every so often I have to pull my production database into staging/local. This will switch Test Mode to Live.

Is there anyway to force Test Mode to stay on?

WooCommerce Payments has a WCPAY_DEV_MODE constant for this purpose. I’m also setting WP_ENVIRONMENT_TYPE to staging and local which other plugins use for similar purposes.

Apologies if this is in the documentation already, but I couldn’t find it.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer