Support

Account

Home Forums Bug Reports Can't insert blocks before and after

Unread

Can't insert blocks before and after

    • wggl

    • July 24, 2020 at 10:59 pm

    Hey there,

    i found a weird behaviour:

    As soon as i just allow ACF and reusable blocks with the “allowed_block_types” filter, the option to insert blocks “before” and “after” disappear.

    function return_allowed_block_types( $allowed_blocks ) {
    	return array(
    		'core/block',
    		'acf/hero',
    	);
    }
    add_filter( 'allowed_block_types', 'return_allowed_block_types' );

    By adding for example a “core/paragraph” block it is again possible to insert a acf block before and after the current block.

    function return_allowed_block_types( $allowed_blocks ) {
    	return array(
    		'core/block',
                    'core/paragraph',
    		'acf/hero',
    	);
    }
    add_filter( 'allowed_block_types', 'return_allowed_block_types' );

    Am i missing something here?

    Cheers
    Wolf

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.