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 |
---|---|
308 | $editor_settings = array( |
309 | 'alignWide' => $align_wide, |
310 | 'availableTemplates' => $available_templates, |
311 | 'allowedBlockTypes' => $allowed_block_types, |
312 | 'disableCustomColors' => get_theme_support( 'disable-custom-colors' ), |
313 | 'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ), |
314 | 'disableCustomGradients' => get_theme_support( 'disable-custom-gradients' ), |
315 | 'disablePostFormats' => ! current_theme_supports( 'post-formats' ), |
316 | /** This filter is documented in wp-admin/edit-form-advanced.php */ |
317 | 'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ), |
318 | 'bodyPlaceholder' => $body_placeholder, |
319 | 'isRTL' => is_rtl(), |
320 | 'autosaveInterval' => AUTOSAVE_INTERVAL, |
321 | 'maxUploadFileSize' => $max_upload_size, |
322 | 'allowedMimeTypes' => get_allowed_mime_types(), |
323 | 'styles' => $styles, |
324 | 'defaultEditorStyles' => $default_editor_styles, |
325 | 'imageSizes' => $available_image_sizes, |
326 | 'imageDimensions' => $image_dimensions, |