• Resolved shuangmiles

    (@shuangmiles)


    I have a filter set up for allowed_block_types. In order to use this which folder do I need to allow to see it amongst the blocks?

    
    
    add_filter( 'allowed_block_types', 'blocks_allowed_block_types', 10, 2 );
    		function blocks_allowed_block_types( $allowed_blocks, $post ) {
    			if ( $post->post_type == 'post' ) {
    				return array(
    					'core/shortcode',
    					'core/freeform',
    					'core/paragraph',
    					'core/image',
    					'core/buttons',
    					'core/heading',
    					'core/gallery',
    					'core/list',
    					'core/quote',
    					'core/cover',
    					'core/file',
    					'core/audio',
    					'core/video',
    					'core/code',
    					'core/table',
    					'core/pullquote',
    					'core/columns',
    					'core/separator',
    					'core/spacer',
    					'core/media-text',
    					'core/embed',
    					'core-embed/twitter',
    					'core-embed/youtube',
    					'core-embed/facebook',
    					'core-embed/instagram',
    					'core-embed/WPRM',
    					
    				);
    			}

Viewing 1 replies (of 1 total)
  • Plugin Author Brecht

    (@brechtvds)

    These are all of the available blocks in the free plugin:

    wp-recipe-maker/recipe
    wp-recipe-maker/recipe-roundup-item
    wp-recipe-maker/recipe-snippet
    wp-recipe-maker/recipe-part
    wp-recipe-maker/nutrition-label
    wp-recipe-maker/jump-to-recipe
    wp-recipe-maker/jump-to-video
    wp-recipe-maker/print-recipe
Viewing 1 replies (of 1 total)
  • The topic ‘What to put to for allowed block list to be able to see this plugin’ is closed to new replies.