default_content filter-hook . WP 1.5.0
Filters the default post content initially used in the "Write Post" form.
Usage
add_filter( 'default_content', 'filter_function_name_2529', 10, 2 ); function filter_function_name_2529( $post_content, $post ){ // filter... return $post_content; }
- $post_content(string)
- Default post content.
- $post(WP_Post)
- Post object.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
wp-admin/includes/post.php 732
$post->post_content = (string) apply_filters( 'default_content', $post_content, $post );