Pre-fill new posts with blocks or text, such as an introduction prompt and a call-to-action, so every post starts with your structure.
add_filter( 'default_content', function ( string $content, WP_Post $post ): string {
if ( 'post' !== $post->post_type ) {
return $content;
}
return '<!-- wp:paragraph {"placeholder":"Start with a one-sentence summary…"} -->
<p></p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">Key takeaways</h2>
<!-- /wp:heading -->
<!-- wp:list -->
<ul class="wp-block-list"><!-- wp:list-item --><li></li><!-- /wp:list-item --></ul>
<!-- /wp:list -->';
}, 10, 2 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
If your posts follow a structure, like a summary, then takeaways, then the body, starting each one from a blank page means retyping it every time. This snippet pre-fills new posts with that structure.
WordPress passes the content of every new post through default_content before opening the editor. Returning block markup gives writers real blocks to fill in, here a summary paragraph with a placeholder, a “Key takeaways” heading and an empty list.
Only new posts are affected. Existing posts are never changed.
Click Posts → Add New. The editor should open with your blocks already in place.