• Resolved alanbrownca

    (@alanbrownca)


    How should one go about deregistering the Filebird Gallery block from the list of Gutenberg Blocks?

    The following common practice does not seem to work for this block:

    wp.domReady(function () {
      wp.blocks.unregisterBlockType('cgb/block-filebird-gallery');
    });
    • This topic was modified 4 years, 11 months ago by alanbrownca. Reason: remove comment from code
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ninja Team

    (@ninjateam)

    Hi there,

    Thanks for reaching out.

    You can open file filebird.php and comment this code

    if ( function_exists( 'register_block_type' ) ) {
        require plugin_dir_path(__FILE__) . 'blocks/filebird-gallery/src/init.php';
    }

    Please let me know if this helps.

    Kelly

    Thread Starter alanbrownca

    (@alanbrownca)

    Kelly, thank you for your reply.
    If I am making changes to the plugin code then it would be overwritten when the plugin updates. Is there a solution for this that can be implemented in my code?

    Plugin Author Ninja Team

    (@ninjateam)

    Here you go

    wp.domReady(()=> {
      wp.blocks.unregisterBlockType('filebird/block-filebird-gallery');
    });

    I hope this helps.
    Cheers!

    Kelly

    Thread Starter alanbrownca

    (@alanbrownca)

    Thank you Kelly! This is precisely what I was after.

    Plugin Author Ninja Team

    (@ninjateam)

    Great to hear that @alanbrownca , could you mind leaving FileBird a nice review?

    Thank you so much.

    Kelly

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deregistering Filebird Gallery block’ is closed to new replies.