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
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'            => '',