JPKComAllowBlocks
Table of Contents
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
JPKCOM_ALLOW_BLOCKS_VERSION
public
mixed
JPKCOM_ALLOW_BLOCKS_VERSION
= '2.0.3'
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
Return values
array<string|int, string> —Allowed block type names.