block_categories_all WordPress Filter Hook

The block_categories_all hook is used to register all block categories. This hook is used by the block editor to populate the Block Categories dropdown in the editor interface.

apply_filters( 'block_categories_all', array[] $block_categories, WP_Block_Editor_Context $block_editor_context ) #

Filters the default array of categories for block types.


Parameters

$block_categories

(array[])Array of categories for block types.

$block_editor_context

(WP_Block_Editor_Context)The current block editor context.


Top ↑

Source

File: wp-includes/block-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.