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