/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function maxWord($title){
global $post;
$title = $post->post_title;
wp_die( __('Error: your post title is over the maximum word count.') );
}
add_action('publish_post', 'maxWord'
Comments
 Subscribe to comments
                    Subscribe to comments
                
                