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
166 /**
167  * Filters the body placeholder text.
168  *
169  * @since 5.0.0
170  * @since 5.8.0 Changed the default placeholder text.
171  *
172  * @param string  $text Placeholder text. Default 'Type / to choose a block'.
173  * @param WP_Post $post Post object.
174  */
175 $body_placeholder = apply_filters( 'write_your_story', __( 'Type / to choose a block' ), $post );
176
177 $editor_settings = array(
178      'availableTemplates'                   => $available_templates,
179      'disablePostFormats'                   => ! current_theme_supports( 'post-formats' ),
180      /** This filter is documented in wp-admin/edit-form-advanced.php */
181      'titlePlaceholder'                     => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
182      'bodyPlaceholder'                      => $body_placeholder,
183      'autosaveInterval'                     => AUTOSAVE_INTERVAL,
184      'styles'                               => get_block_editor_theme_styles(),