On this page
apply_filters( 'default_content', string $post_content, WP_Post $post )
Filters the default post content initially used in the “Write Post” form.
Parameters
$post_contentstring-
Default post content.
$postWP_Post-
Post object.
Source
File: wp-admin/includes/post.php. View all references
$post->post_content = (string) apply_filters( 'default_content', $post_content, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_default_post_to_edit() wp-admin/includes/post.php | Returns default post information to use when populating the “Write Post” form. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/default_content