Skip to content

Commit

Permalink
adding wp development mode constant to theme.json recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Apr 8, 2024
1 parent 778176b commit 206f413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reference/02-Themes/theme-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 206f413

Please sign in to comment.