apply_filters( ‘default_content’, string $post_content, WP_Post $post )

In this article

Filters the default post content initially used in the “Write Post” form.

Parameters

$post_contentstring
Default post content.
$postWP_Post
Post object.

Source

$post->post_content = (string) apply_filters( 'default_content', $post_content, $post );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.