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 |
---|---|
348 | * Fires after block assets have been enqueued for the editing interface. |
349 | * |
350 | * Call `add_action` on any hook before 'admin_enqueue_scripts'. |
351 | * |
352 | * In the function call you supply, simply use `wp_enqueue_script` and |
353 | * `wp_enqueue_style` to add your functionality to the block editor. |
354 | * |
355 | * @since 5.0.0 |
356 | */ |
357 | do_action( 'enqueue_block_editor_assets' ); |
358 |
|
359 | // In order to duplicate classic meta box behaviour, we need to run the classic meta box actions. |
360 | require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); |
361 | register_and_do_post_meta_boxes( $post ); |
362 |
|
363 | // Check if the Custom Fields meta box has been removed at some point. |
364 | $core_meta_boxes = $wp_meta_boxes[ $current_screen->id ]['normal']['core']; |
365 | if ( ! isset( $core_meta_boxes['postcustom'] ) || ! $core_meta_boxes['postcustom'] ) { |
366 | unset( $editor_settings['enableCustomFields'] ); |