filter_block_editor_meta_boxes filter-hookWP 5.0.0

Fires right before the meta boxes are rendered.

This allows for the filtering of meta box data, that should already be present by this point. Do not use as a means of adding meta box data.

Usage

add_filter( 'filter_block_editor_meta_boxes', 'wp_kama_filter_block_editor_meta_boxes_filter' );

/**
 * Function for `filter_block_editor_meta_boxes` filter-hook.
 * 
 * @param array $wp_meta_boxes Global meta box state.
 *
 * @return array
 */
function wp_kama_filter_block_editor_meta_boxes_filter( $wp_meta_boxes ){

	// filter...
	return $wp_meta_boxes;
}
$wp_meta_boxes(array)
Global meta box state.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

the_block_editor_meta_boxes()
filter_block_editor_meta_boxes
wp-admin/includes/post.php 2366
$wp_meta_boxes = apply_filters( 'filter_block_editor_meta_boxes', $wp_meta_boxes );

Where the hook is used in WordPress

Usage not found.