跳转到主要内容

最近更新的页面

区块过滤器

Gutenberg 区块编辑器文档

WordPress 提供了多个 API,允许您修改现有区块的行为。 注册 WordPress 中的区块通常使用 block.json 元数据在服务器端和客户端进行注册。您可以使用以下过滤器在服...

由 壳壳虫 更新于 7 个月前

自动补全

Gutenberg 区块编辑器文档

editor.Autocomplete.completers 过滤器用于扩展和覆盖块所使用的自动补全器列表。 @wordpress/block-editor 中的 Autocomplete 组...

由 壳壳虫 更新于 7 个月前

WordPress 核心数据

Gutenberg 区块编辑器文档

命名空间: core。 动态生成的选择器 存在一系列用户友好的选择器,它们是对更通用的 getEntityRecord 和 getEntityRecords 的封装,可用于检索各种实体的信息...

由 壳壳虫 更新于 7 个月前

视口数据

Gutenberg 区块编辑器文档

命名空间: core/viewport。 选择器 isViewportMatch 如果视口匹配给定的查询则返回 true,否则返回 false。 用法 import { store as vie...

由 壳壳虫 更新于 7 个月前

富文本

Gutenberg 区块编辑器文档

命名空间: core/rich-text。 选择器 getFormatType 根据名称返回格式类型。 用法 import { __, sprintf } from '@wordpress/i1...

由 壳壳虫 更新于 7 个月前

可复用区块

Gutenberg 区块编辑器文档

命名空间: core/reusable-blocks。 此软件包仍处于实验阶段。“实验性”意味着这是早期实现,可能会发生剧烈且破坏性的更改。 ## 选择器 暂无内容需要记录。 操作 暂无内容需要记录。

由 壳壳虫 更新于 7 个月前

偏好设置

Gutenberg 区块编辑器文档

命名空间: core/preferences。 选择器 get 返回一个布尔值,指示特定作用域中的偏好是否处于活动状态。 参数 state StoreState: 存储状态。 scope s...

由 壳壳虫 更新于 7 个月前

NUX(新用户体验)数据

Gutenberg 区块编辑器文档

命名空间: core/nux 选择器 areTipsEnabled 返回提示是否全局启用。 参数 state Object: 全局应用状态。 返回值 boolean: 提示是否全局启用。 ge...

由 壳壳虫 更新于 7 个月前

通知数据

Gutenberg 区块编辑器文档

命名空间: core/notices。 选择器 getNotices 返回所有通知的数组,可选择针对给定的上下文。默认为全局上下文。 用法 import { useSelect } from '...

由 壳壳虫 更新于 7 个月前

键盘快捷键数据

Gutenberg 区块编辑器文档

命名空间: core/keyboard-shortcuts。 选择器 getAllShortcutKeyCombinations Returns the shortcuts that inclu...

由 壳壳虫 更新于 7 个月前

文章编辑器的数据

Gutenberg 区块编辑器文档

命名空间: core/editor。 选择器 canInsertBlockType 相关 core/block-editor 存储中的 canInsertBlockType。 canUserUs...

由 壳壳虫 更新于 7 个月前

编辑小工具

Gutenberg 区块编辑器文档

命名空间: core/edit-widgets。 选择器 canInsertBlockInWidgetArea 如果可以将区块插入到小部件区域,则返回 true。 参数 state Array...

由 壳壳虫 更新于 7 个月前

编辑站点

Gutenberg 区块编辑器文档

命名空间: core/edit-site。 选择器 getCanUserCreateMedia 返回当前用户是否可以创建媒体。 参数 state Object: 全局应用程序状态。 返回 Ob...

由 壳壳虫 更新于 7 个月前

编辑器界面数据

Gutenberg 区块编辑器文档

命名空间: core/edit-post。 选择器 areMetaBoxesInitialized 返回元框是否已初始化。 参数 state Object: 全局应用状态。 返回值 boole...

由 壳壳虫 更新于 7 个月前

Customize Widgets

Gutenberg 区块编辑器文档

Namespace: core/customize-widgets. Selectors isInserterOpened Returns true if the inserter is op...

由 壳壳虫 更新于 7 个月前

命令数据

Gutenberg 区块编辑器文档

命名空间: core/commands。 选择器 getCommandLoaders 返回已注册的命令加载器。 参数 state Object: 状态树。 contextual boolea...

由 壳壳虫 更新于 7 个月前

区块类型数据

Gutenberg 区块编辑器文档

命名空间: core/blocks。 选择器 getActiveBlockVariation Returns the active block variation for a given blo...

由 壳壳虫 更新于 7 个月前

区块编辑器的数据

Gutenberg 区块编辑器文档

命名空间: core/block-editor。 选择器 areInnerBlocksControlled 检查给定区块是否具有受控内部区块。 参数 state Object: 全局应用状态。...

由 壳壳虫 更新于 7 个月前

区块目录

Gutenberg 区块编辑器文档

命名空间: core/block-directory。 选择器 getDownloadableBlocks 返回可用的未安装区块。 参数 state Object: 全局应用状态。 filte...

由 壳壳虫 更新于 7 个月前

注释

Gutenberg 区块编辑器文档

命名空间: core/annotations。 此软件包仍处于实验阶段。“实验性”意味着这是早期实现,可能会发生剧烈且破坏性的变更。 选择器 暂无文档内容。 操作 暂无文档内容。

由 壳壳虫 更新于 7 个月前