if(!is_singular()||!$post||(!has_shortcode($post->post_content,'hg_contactform')&&!has_shortcode($post->post_content,'mlh_contact')))wp_die('Invalid form page','',['response'=>403]);
$lang=hgcf_language($post->post_content);
$error=hgcf_text('Het versturen is niet gelukt. Probeer het opnieuw of gebruik een andere contactmogelijkheid.','Your message could not be sent. Please try again or use another contact option.',$lang);
if($rate&&($rate['count']>=5||time()-$rate['last']<30)){$GLOBALS['mlhc_errors']=newWP_Error('rate',hgcf_text('Even geduld: probeer het over een minuut opnieuw of gebruik een andere contactmogelijkheid.','Please wait a minute before trying again, or use another contact option.',$lang));return;}
if(hgcf_altcha_enabled()&&!hgcf_verify_altcha(wp_unslash($_POST['mlhc_altcha']??''),$id)){$GLOBALS['mlhc_errors']=newWP_Error('altcha',hgcf_text('De antispamcontrole is niet gelukt of verlopen. Probeer de controle opnieuw.','The spam protection check failed or expired. Please verify again.',$lang));return;}