default_content WordPress Filter Hook
The default_content Wordpress hook is used to set the default content for new posts and pages. This hook is useful for setting a default template or content for new posts and pages.
apply_filters( 'default_content', string $post_content , WP_Post $post ) #
Filters the default post content initially used in the “Write Post” form.
Parameters
- $post_content
(string)Default post content.
- $post
(WP_Post)Post object.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |