admin管理员组文章数量:1332889
I need to have the ability to hide the Polylang metabox from the post edit page programmatically. I only want to show it to a few users, but hide it to people who do not have enough privileges.
There should be a possibility to do it programmatically with the wp javascript object like that
wp.data.dispatch('core/edit-post').removeEditorPanel('polylang-metabox-id');
I use this method for other boxes but I cannot find the ID of the Polylang box.
Any help would be appreciated.
本文标签: block editorHide Polylang metabox from the post edit sidebar
版权声明:本文标题:block editor - Hide Polylang metabox from the post edit sidebar 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742316489a2451920.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论