wordpress - 古腾堡选择类别
问题描述
我有以下代码
wp.data.select( 'core' ).getEntityRecords( 'taxonomy', 'category' );
我收到这个错误
Uncaught TypeError: Cannot read property 'getEntityRecords' of null
at Module../src/index.js (index.js:6)
at __webpack_require__ (bootstrap:79)
at checkDeferredModules (bootstrap:45)
at bootstrap:152
at bootstrap:152
如果我安装另一个与此插件无关的插件,我的代码就可以工作。所以我坚持认为我可能会忘记包含一些内容。
解决方案
推荐阅读
- bootstrap-datetimepicker - 在 boostrap-datetimepicker 的选择器上设置分钟步长
- r - 如何使用r中的brms包处理面板数据
- php - FindBy() 方法“或”/“与”
- android - 在 android 应用程序中运行 USSD 代码时遇到问题
- javascript - 对于angularjs中的循环
- grails - 如何使用 grails json 视图在同一个列表中呈现不同类型的对象?
- git - .gitignore 不会从 Sourcetree 中被忽略的目录内容中排除文件类型
- wordpress - WordPress.org 主题提交
- angular - 如果用户使用navigateByUrl更改密码不起作用,Angular 6重定向到应用程序的启动组件
- coldfusion - ColdFusion:指定的源文件无效