admin管理员组文章数量:1302929
is there a way how can I hide/remove components panel?
There is one panel created by plugin GhostKit and I need to remove it, because it's not working properly and our users try to use it and it cause a lot of problems... it's Animate On Scroll panel
is there a way how can I hide/remove components panel?
There is one panel created by plugin GhostKit and I need to remove it, because it's not working properly and our users try to use it and it cause a lot of problems... it's Animate On Scroll panel
Share Improve this question asked Mar 21, 2021 at 19:33 KubiQKubiQ 415 bronze badges1 Answer
Reset to default 1Ok, nevermind, I found solution
I've tried removeFilter( 'editor.BlockEdit', 'ghostkit/sr/additional-attributes' );
but it was not working inside my plugin, but it worked in console, so then I found out, that I need to hook this to something, so this is working solution
addAction( 'plugins.pluginRegistered', 'kubiq/remove-ghostkit-animations', function( settings, name ){
if( name == 'ghostkit' ){
removeFilter( 'editor.BlockEdit', 'ghostkit/sr/additional-attributes' );
}
});
本文标签: filtersHow to hideremove GhostKit component panel in gutenberg block inspector
版权声明:本文标题:filters - How to hideremove GhostKit component panel in gutenberg block inspector 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741663980a2391200.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论