JPKCom Allow Block Types

Documentation

Table of Contents

Packages

JPKComAllowBlocks
JPKComAllowBlocksGitUpdate

Namespaces

JPKComAllowBlocksGitUpdate

Constants

JPKCOM_ALLOW_BLOCKS_VERSION  : mixed = '2.0.3'

Functions

jpkcom_allowed_block_types()  : array<string|int, string>
Restrict the editor to a curated list of allowed block types.

Constants

Functions

jpkcom_allowed_block_types()

Restrict the editor to a curated list of allowed block types.

jpkcom_allowed_block_types(bool|array<string|int, string> $allowed_block_types, WP_Block_Editor_Context $block_editor_context) : array<string|int, string>
Parameters
$allowed_block_types : bool|array<string|int, string>

Array of allowed block types, or boolean to enable/disable all.

$block_editor_context : WP_Block_Editor_Context

The current block editor context.

Tags
since
1.0.0
Return values
array<string|int, string>

Allowed block type names.

Search results