/jobapply::model.php Secret
Created
December 9, 2024 06:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File: wp-job-portal\modules\jobapply\model.php | |
// Function: sendEmailToJobSeeker | |
// Line: 2165-2180 | |
function sendEmailToJobSeeker() { | |
$nonce = WPJOBPORTALrequest::getVar('_wpnonce'); | |
if (! wp_verify_nonce( $nonce, 'send-email-to-jobseeker') ) { | |
die( 'Security check Failed' ); | |
} | |
$jobseekeremail = WPJOBPORTALrequest::getVar('jobseekerid'); | |
$subject = WPJOBPORTALrequest::getVar('emailsubject'); | |
$senderemail = WPJOBPORTALrequest::getVar('senderid'); | |
$mail = WPJOBPORTALrequest::getVar('mailbody'); | |
$return = wpjobportal::$_common->sendEmail($jobseekeremail, $subject, $mail, $senderemail, ''); | |
if($return == 1){ | |
return esc_html(__('Email has been send','wp-job-portal')); | |
}else{ | |
return esc_html(__('Email has not been send','wp-job-portal')); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment