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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

Ok, 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