wordpress - 如何使自定义分类法出现在 Gutenberg BLOCK LIST 中
问题描述
在 WordPress Gutenberg 编辑器中,我们有默认类别BLOCK(如屏幕截图所示)如何在 Gutenberg BLOCK LIST 中添加我的自定义分类(名为 Leaning)块
我试过这段代码,但不工作:
wp.data.select('core').getEntityRecords('taxonomy', 'learning');
所以我希望分类法“Leaning”作为一个 BLOCK ,当我添加那个 BLOCK 时,它的术语列表需要显示(例如:编程、设计、营销......)
解决方案
推荐阅读
- c++ - 在 C++ 中获取数组中相同值的数量
- windows - Artifactory 升级 6.16.2 -> 7.12.6 失败,应用程序无法初始化:不可用:网络因未知原因关闭
- java - Spring Cloud Stream 在发送后处理消息
- python - Pandas 通过为数据帧之间的每个重复行仅删除一行来合并两个数据帧
- php - 如何在一个 Query PHP 中加入 mongoDB 中的多个集合以获取具体数据
- sql - PostgreSQL DROP ROLE 抛出错误:无法删除角色,因为它是数据库系统需要的
- javascript - 如何选择特定的 ID 来做某事?
- python-3.x - 没有为所有循环参数运行python multiprocessing for loop
- discord - 删除消息命令,仅适用于所有者、管理员和版主
- freertos - FreeRTOS - 堆栈增加的原因?