When you write any WordPress post and you clicked on Publish button, Then post posted by default title name or post id. But you want to show alert box when click on publish button when title box is empty. How to do Open functions.php file first. Then paste given code – function add_title_validation() { ?> […]