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

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

Description Description

Parameters Parameters


(bool|array) Array of block type slugs, or boolean to enable/disable all.


(object) The post resource data.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.