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