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 |
---|---|
530 |
|
531 | /** |
532 | * Filters the settings to pass to the block editor for all editor type. |
533 | * |
534 | * @since 5.8.0 |
535 | * |
536 | * @param array $editor_settings Default editor settings. |
537 | * @param WP_Block_Editor_Context $block_editor_context The current block editor context. |
538 | */ |
539 | $editor_settings = apply_filters( 'block_editor_settings_all', $editor_settings, $block_editor_context ); |
540 |
|
541 | if ( ! empty( $block_editor_context->post ) ) { |
542 | $post = $block_editor_context->post; |
543 |
|
544 | /** |
545 | * Filters the settings to pass to the block editor. |
546 | * |
547 | * @since 5.0.0 |
548 | * @deprecated 5.8.0 Use the {@see 'block_editor_settings_all'} filter instead. |