write_your_story
Filters the body placeholder text.
Usage
add_filter( 'write_your_story', 'wp_kama_write_your_story_filter', 10, 2 ); /** * Function for `write_your_story` filter-hook. * * @param string $text Placeholder text. * @param WP_Post $post Post object. * * @return string */ function wp_kama_write_your_story_filter( $text, $post ){ // filter... return $text; }
- $text(string)
- Placeholder text.
Default: 'Type / to choose a block' - $post(WP_Post)
- Post object.
Changelog
Since 5.0.0 | Introduced. |
Since 5.8.0 | Changed the default placeholder text. |
Where the hook is called
In file: /wp-admin/edit-form-blocks.php
write_your_story
wp-admin/edit-form-blocks.php 193
$body_placeholder = apply_filters( 'write_your_story', __( 'Type / to choose a block' ), $post );