July 15 2023

WordPress 6.3 will introduce a Development Mode

Introducing WP_DEVELOPMENT_MODE, the new development mode in WordPress 6.3

WP_DEVELOPMENT_MODE

With the release of the Dev Notes for the upcoming WordPress 6.3 release, there are many exciting features that have not yet been highlighted. The new development mode, activated by declaring the WP_DEVELOPMENT_MODE constant, will initially be especially useful for theme developers.

"The development mode configured on a site defines the type of development work the site is used forsaid Felix Arntz, a lead developer of Google-sponsored WordPress. This mode is not recommended for production sites.

Possible values ​​for the WP_DEVELOPMENT_MODE constant include “core”, “plugin”, “theme”, “all”, or an empty string (which is the default value). The value "all" is applicable to sites where all three aspects could be changed, such as a client website under construction.

There are currently only a few use cases in WordPress Core that are determined by how you are developing, but that is likely to increase in the future. Most usage today is for theme.json cache

Arntz said.

Since the cache is typically only invalidated when the theme is updated, it can become burdensome for developers who are actively editing the theme.json file and have to manually invalidate it to see their changes. This caching functionality is bypassed when the value is set to "theme".

While the WP_ENVIRONMENT_TYPE constant looks similar to the new development mode, it specifically indicates whether the environment is development, staging, or production, but it doesn't specify what kind of development is being done.

It is likely that you will only use the WP_DEVELOPMENT_MODE constant on a site where WP_DEBUG is enabled and WP_ENVIRONMENT_TYPE is 'development' or 'local', as it is not recommended to develop directly against staging or production environments

Arntz pointed out.

For more details on when and how to use Developer Mode, and for code examples to check if development mode is enabled on a site, developers can refer to the developer note posted on the blog make.wordpress.org/core.

Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.

0256569681

Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.

INFORMATION

Managed Server Srl is a leading Italian player in providing advanced GNU/Linux system solutions oriented towards high performance. With a low-cost and predictable subscription model, we ensure that our customers have access to advanced technologies in hosting, dedicated servers and cloud services. In addition to this, we offer systems consultancy on Linux systems and specialized maintenance in DBMS, IT Security, Cloud and much more. We stand out for our expertise in hosting leading Open Source CMS such as WordPress, WooCommerce, Drupal, Prestashop, Joomla, OpenCart and Magento, supported by a high-level support and consultancy service suitable for Public Administration, SMEs and any size.

Red Hat, Inc. owns the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. owns the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds owns the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt. Oracle Corporation owns the rights to Oracle®, MySQL®, and MyRocks®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; REDIS® is a registered trademark of Redis Labs Ltd. F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB. Adobe Inc. holds the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited. Automattic Inc. owns the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert holds the rights to Drupal®. Amazon Web Services, Inc. holds the rights to AWS®; Google LLC holds the rights to Google Cloud™ and Chrome™; Facebook, Inc. owns the rights to Facebook®; Microsoft Corporation holds the rights to Microsoft®, Azure®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®. Apache® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group. CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV This site is not affiliated, sponsored, or otherwise associated with any of the entities mentioned above and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. Any other trademarks mentioned belong to their registrants. MANAGED SERVER® is a registered trademark at European level by MANAGED SERVER SRL Via Enzo Ferrari, 9 62012 Civitanova Marche (MC) Italy.

Back to top