Home Forums Gutenberg Main block button appender allowed blocks


Main block button appender allowed blocks

  • When adding a custom block with InnerBlocks via ACF we have the option to set the allowed blocks that can go in it like this

    // Allowed blocks inside this block.
    $allowed_blocks = array(

    And then

    <InnerBlocks allowedBlocks="<?php echo esc_attr( wp_json_encode( $allowed_blocks ) ); ?>" />

    But how can we control the allowed blocks of the main block button appender, ie the button block appender that appears at the end of the block editor, which, by the way, is the only button in the block editor when no blocks have been inserted

    This would help us totally control what is inserted in the block editor. For instance we can force the user to start by adding layout elements first, like rows and columns and then content elements like text and images. There are many cases where such limitations are very valid and protect the users from mistakes.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.