Skip to content

Commit 23635bb

Browse files
authored
Allow specific block types in Gutenberg editor Add
1 parent 269d93d commit 23635bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"generator":"Code Snippets v2.13.2","date_created":"2019-02-13 20:44","snippets":[{"name":"Allow specific block types in Gutenberg editor","desc":"https:\/\/rudrastyh.com\/gutenberg\/remove-default-blocks.html","tags":["block","types","editor","gutenberg","wordpress","allow"],"scope":"admin","code":"add_filter( 'allowed_block_types', 'wp_allowed_block_types' );\r\n \r\nfunction wp_allowed_block_types( $allowed_blocks ) {\r\n \r\n\treturn array(\r\n\t\t'core\/image',\r\n\t\t'core\/paragraph',\r\n\t\t'core\/heading',\r\n\t\t'core\/list'\r\n\t);\r\n \r\n}"}]}

0 commit comments

Comments
 (0)