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 |
---|---|
71 | * Filters the wp_editor() settings. |
72 | * |
73 | * @since 4.0.0 |
74 | * |
75 | * @see _WP_Editors::parse_settings() |
76 | * |
77 | * @param array $settings Array of editor arguments. |
78 | * @param string $editor_id ID for the current editor instance. |
79 | */ |
80 | $settings = apply_filters( 'wp_editor_settings', $settings, $editor_id ); |
81 |
|
82 | $set = wp_parse_args( |
83 | $settings, |
84 | array( |
85 | // Disable autop if the current post has blocks in it. |
86 | 'wpautop' => ! has_blocks(), |
87 | 'media_buttons' => true, |
88 | 'default_editor' => '', |
89 | 'drag_drop_upload' => false, |