How to validate recaptcha on comments form?

There’s a preprocess_comment filter that is run before the comment is inserted in the database. You will have access to the comment’s data: add_filter( ‘preprocess_comment’ , ‘wpse321083_process_recaptcha’ ); function wpse321083_process_recaptcha( $commentdata ) { // Process recaptcha here return $commentdata; } Here’s also a good article on SitePoint.com explaining how to implement this feature in your … Read more

Ajax post returning full html page as response

A call to this function complements the die() PHP function. The difference is that HTML will be displayed to the user in the case of a typical web request Taken from here Have you tried to use die() instead of wp_die() or exit()?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)