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



default_content › WordPress Filter Hooks

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

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





Source

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