filter_block_editor_meta_boxes │ хук-фильтр │ WP 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.

Использование

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(массив)
Global meta box state.

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.