From 206f413858039c5fb3fc7b7b0f8a81d5add4a444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ka=CC=88gy?= Date: Mon, 8 Apr 2024 19:29:36 +0200 Subject: [PATCH] adding wp development mode constant to theme.json recommendation --- reference/02-Themes/theme-json.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/02-Themes/theme-json.md b/reference/02-Themes/theme-json.md index 9444852..d8dab08 100644 --- a/reference/02-Themes/theme-json.md +++ b/reference/02-Themes/theme-json.md @@ -105,6 +105,8 @@ body { :::tip By default WordPress [caches the Stylesheet](https://github.com/WordPress/wordpress-develop/blob/9b105d92a4b769f396ba798db1f106abab75001f/src/wp-includes/global-styles-and-settings.php#L91-L97) that gets generated out of `theme.json`. For development purposes you can bypass that caching by enabling [debug mode](https://wordpress.org/support/article/debugging-in-wordpress) via the `WP_DEBUG` global in your `wp-config.php`. (`SCRIPT_DEBUG` also achieves the same thing) + +Additionally setting the `WP_DEVELOPMENT_MODE` to `all` also is encouraged when working on both custom themes and plugins locally. ::: ## Understanding the cascade