Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: write_your_story

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
255
256 /**
257  * Filters the body placeholder text.
258  *
259  * @since 5.0.0
260  *
261  * @param string  $text Placeholder text. Default 'Start writing or type / to choose a block'.
262  * @param WP_Post $post Post object.
263  */
264 $body_placeholder = apply_filters( 'write_your_story', __( 'Start writing or type / to choose a block' ), $post );
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 */