定制 alleyinteractive/wp-block-debug 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alleyinteractive/wp-block-debug

最新稳定版本:v0.3.0

Composer 安装命令:

composer require alleyinteractive/wp-block-debug

包简介

Adds a panel to the WordPress block editor with a lot of information about the selected block, including methods to set attributes.

README 文档

README

This plugin adds a panel to the WordPress block editor that allows you to inspect and modify the selected block. You can:

  • Copy the block name
  • Copy the block client ID
  • View the block object (from select('core/block-editor').getBlock())
  • View the block type object
  • View the output of useBlockProps()
  • View and copy the serialized block HTML
  • View and edit most block attributes (see the "Editing Attributes" section below)

Installation

You can install the plugin via Composer:

composer require alleyinteractive/wp-block-debug

Editing Attributes

The interface for editing block attributes is generated by passing the block type's attributes schema to react-jsonschema-form. Some attributes might be easier to edit than others, and some attributes might not be editable at all, depending on how well-defined the attributes are in the schema (you can use the "Dump block type" feature in the debug panel to see it).

Only attributes with a type of string, number, integer, boolean, object, array, or null are supported; items of type array must also define an items schema.

Controlling Access

The debug panel is available to users with the view_block_debug capability, which is mapped to edit_posts by default.

Screenshots

Screenshot of the block editor with the block debug panel open

Screenshot of the output of "Dump block instance"

Screenshot of the output of "Dump useBlockProps()"

About

License

GPL-2.0-or-later

Maintainers

Alley Interactive

统计信息

  • 总下载量: 2.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 20
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固