Created
May 5, 2015 13:40
-
-
Save dotMastaz/e5c1c7321fddbe563610 to your computer and use it in GitHub Desktop.
WordPress Post Title Require
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function post_title_require($title='') { | |
if ( '' == $title ) | |
die('Post Title Require'); | |
return $title; | |
} | |
add_filter('title_save_pre', 'post_title_require', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment