WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2254 | * Fires right before the meta boxes are rendered. |
| 2255 | * |
| 2256 | * This allows for the filtering of meta box data, that should already be |
| 2257 | * present by this point. Do not use as a means of adding meta box data. |
| 2258 | * |
| 2259 | * @since 5.0.0 |
| 2260 | * |
| 2261 | * @param array $wp_meta_boxes Global meta box state. |
| 2262 | */ |
| 2263 | $wp_meta_boxes = apply_filters( 'filter_block_editor_meta_boxes', $wp_meta_boxes ); |
| 2264 | $locations = array( 'side', 'normal', 'advanced' ); |
| 2265 | $priorities = array( 'high', 'sorted', 'core', 'default', 'low' ); |
| 2266 | |
| 2267 | // Render meta boxes. |
| 2268 | ?> |
| 2269 | <form class="metabox-base-form"> |
| 2270 | <?php the_block_editor_meta_box_post_form_hidden_fields( $post ); ?> |
| 2271 | </form> |
| 2272 | <form id="toggle-custom-fields-form" method="post" action="<?php echo esc_attr( admin_url( 'post.php' ) ); ?>"> |