filters – How to hide/remove GhostKit component panel in gutenberg block inspector

Question

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' );
    }
});

0
KubiQ 4 weeks 2021-03-21T14:33:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse