wpseek.com
A WordPress-centric search engine for devs and theme authors



default_title › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'default_title', $post_title, $post )
Parameters: (2)
  • (string) $post_title Default post title.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
Defined at:
Codex:

Filters the default post title initially used in the "Write Post" form.





Source

$post->post_title = (string) apply_filters( 'default_title', $post_title, $post );