Fix enquire email

This commit is contained in:
Hoang Huu
2020-05-28 14:33:18 +07:00
parent 9dfb0af9e9
commit 1245c12d50
5 changed files with 88 additions and 49 deletions

View File

@@ -266,7 +266,7 @@ class OpalEstate_User_Message {
switch ( trim( $_POST['type'] ) ) {
case 'send_equiry':
if ( wp_verify_nonce( $_POST['message_action'], 'send-enquiry-form' ) ) {
$member = $this->get_member_email_data( (int) $_POST['post_id'] );
$member = $this->get_member_email_data( absint( $_POST['post_id'] ) );
$content = $this->send_equiry( $_POST, $member );
}
break;