https://sangkrit.net/automatically-check-for-duplicate-post-titles-in-wordpress/
Automatically Check For Duplicate Post Titles In WordPress