allowed_block_types

Advertisement

Summery Summery

Filters the allowed block types for the editor, defaulting to true (all block types supported).

Syntax Syntax

apply_filters( 'allowed_block_types', bool|array $allowed_block_types, WP_Post $post )

Parameters Parameters

$allowed_block_types

Array of block type slugs, or boolean to enable/disable all.

$post

The post resource data.

Source Source

File: wp-admin/edit-form-blocks.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply