Auto delete empty posts
You want to write a wp_insert_post_empty_content filter. WordPress will already try and reject empty posts: $maybe_empty = ‘attachment’ !== $post_type && ! $post_content && ! $post_title && ! $post_excerpt && post_type_supports( $post_type, ‘editor’ ) && post_type_supports( $post_type, ‘title’ ) && post_type_supports( $post_type, ‘excerpt’ ); but I guess that logic isn’t catching your posts here. So … Read more