Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_editor_settings

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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