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 |
---|---|
74 | * |
75 | * @since 4.0.0 |
76 | * |
77 | * @see _WP_Editors::parse_settings() |
78 | * |
79 | * @param array $settings Array of editor arguments. |
80 | * @param string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block' |
81 | * when called from block editor's Classic block. |
82 | */ |
83 | $settings = apply_filters( 'wp_editor_settings', $settings, $editor_id ); |
84 |
|
85 | $set = wp_parse_args( |
86 | $settings, |
87 | array( |
88 | // Disable autop if the current post has blocks in it. |
89 | 'wpautop' => ! has_blocks(), |
90 | 'media_buttons' => true, |
91 | 'default_editor' => '', |
92 | 'drag_drop_upload' => false, |