function sendQ() { $tpl = new Tpl(); $tpl->send_mails_q($_POST['name'], $_POST['text'], $_POST['email']); wp_die(); }