default_title WordPress Filter Hook
The default_title WordPress hook is used to set the default title for a WordPress post. This hook is called by the_title() function, which is used to display the title of a WordPress post.
apply_filters( 'default_title', string $post_title , WP_Post $post ) #
Filters the default post title initially used in the “Write Post” form.
Parameters
- $post_title
(string)Default post title.
- $post
(WP_Post)Post object.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |