Linux 软件免费装
Banner图

Presetscope

开发者 rahultank
更新时间 2026年10月1日 19:09
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

developer css variables global styles block themes theme json

下载

1.0.0

详情介绍:

WordPress builds the final theme.json data by merging three layers: core defaults, the active theme (and its parent), and the changes saved in the Site Editor. When a colour, font size or spacing value is not what you expect, it can be hard to see which layer it came from. Presetscope is a theme.json inspector. It adds a screen under Tools → Presetscope that shows this merged data: You can switch between the data with and without the Site Editor changes, to see what the theme itself provides. It works with block themes and classic themes. Read-only The screen only reads data through WordPress' public functions (wp_get_global_settings(), wp_get_global_styles() and wp_get_global_stylesheet()). It does not change the theme, the Site Editor data or any option, and it stores nothing in the database. Only users who can edit theme options (administrators by default) can see it. Nothing is sent to any external service. Presetscope is an independent project and is not affiliated with or endorsed by the WordPress project.

安装:

  1. Upload the presetscope folder to /wp-content/plugins/, or install it from the Plugins screen.
  2. Activate the plugin.
  3. Go to Tools → Presetscope.

常见问题:

Can I edit theme.json here?

No. The screen is read-only. Use your theme files, or the Site Editor's Styles panel, to make changes.

Why does the Source column say "default"?

Those presets come from WordPress core. "theme" means the active theme defines them, and "custom" means they were added in the Site Editor.

Does it work with classic themes?

Yes. Classic themes without a theme.json file show the core defaults that WordPress uses for them.

更新日志:

1.0.0