Check post on publish for blank title
Your error doesn’t appears on the screen because the page is reloaded after the action publish_post. I have followed a different approach altogether, I’m checking the post title at wp_insert_post_data if the title is empty, I mark the post_status as draft and save a simple flag in options table. The flag I’ve saved is used … Read more