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 |
|---|---|
| 73 | * |
| 74 | * @since 4.0.0 |
| 75 | * |
| 76 | * @see _WP_Editors::parse_settings() |
| 77 | * |
| 78 | * @param array $settings Array of editor arguments. |
| 79 | * @param string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block' |
| 80 | * when called from block editor's Classic block. |
| 81 | */ |
| 82 | $settings = apply_filters( 'wp_editor_settings', $settings, $editor_id ); |
| 83 | |
| 84 | $set = wp_parse_args( |
| 85 | $settings, |
| 86 | array( |
| 87 | // Disable autop if the current post has blocks in it. |
| 88 | 'wpautop' => ! has_blocks(), |
| 89 | 'media_buttons' => true, |
| 90 | 'default_editor' => '', |
| 91 | 'drag_drop_upload' => false, |