W3cubDocs

/WordPress

apply_filters( 'block_categories', array[] $default_categories, WP_Post $post )

Filter the default array of block categories.

Parameters

$default_categories

(array[]) Array of block categories.

$post

(WP_Post) Post being loaded.

Source

File: wp-admin/includes/post.php

View on Trac

Changelog

Version Description
5.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_categories