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 |
---|---|
265 |
|
266 | $editor_settings = array( |
267 | 'alignWide' => $align_wide, |
268 | 'availableTemplates' => $available_templates, |
269 | 'allowedBlockTypes' => $allowed_block_types, |
270 | 'disableCustomColors' => get_theme_support( 'disable-custom-colors' ), |
271 | 'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ), |
272 | 'disablePostFormats' => ! current_theme_supports( 'post-formats' ), |
273 | /** This filter is documented in wp-admin/edit-form-advanced.php */ |
274 | 'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ), |
275 | 'bodyPlaceholder' => $body_placeholder, |
276 | 'isRTL' => is_rtl(), |
277 | 'autosaveInterval' => AUTOSAVE_INTERVAL, |
278 | 'maxUploadFileSize' => $max_upload_size, |
279 | 'allowedMimeTypes' => get_allowed_mime_types(), |
280 | 'styles' => $styles, |
281 | 'imageSizes' => $available_image_sizes, |
282 | 'richEditingEnabled' => user_can_richedit(), |
283 | 'postLock' => $lock_details, |