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 |
|---|---|
| 67 | * Filter the wp_editor() settings. |
| 68 | * |
| 69 | * @since 4.0.0 |
| 70 | * |
| 71 | * @see _WP_Editors()::parse_settings() |
| 72 | * |
| 73 | * @param array $settings Array of editor arguments. |
| 74 | * @param string $editor_id ID for the current editor instance. |
| 75 | */ |
| 76 | $settings = apply_filters( 'wp_editor_settings', $settings, $editor_id ); |
| 77 | |
| 78 | $set = wp_parse_args( $settings, array( |
| 79 | 'wpautop' => true, |
| 80 | 'media_buttons' => true, |
| 81 | 'default_editor' => '', |
| 82 | 'drag_drop_upload' => false, |
| 83 | 'textarea_name' => $editor_id, |
| 84 | 'textarea_rows' => 20, |
| 85 | 'tabindex' => '', |