I intend to let users create blog posts via the front end. I need to make sure the post title and content are each less than 100 characters.
Which hook should I hook my validation function to?
Thanks in advance.
I intend to let users create blog posts via the front end. I need to make sure the post title and content are each less than 100 characters.
Which hook should I hook my validation function to?
Thanks in advance.
The hook needed is wp_insert_post_data
http://codex.wordpress.org/Plugin_API/Filter_Reference/wp_insert_post_data