예제 #1
0
function siw_cf7_set_mail_signature($output, $name, $html)
{
    $name = preg_replace('/^wpcf7\\./', '_', $name);
    $submission = WPCF7_Submission::get_instance();
    if (!$submission) {
        return $output;
    }
    if ('_signature_algemeen' == $name) {
        $signature = siw_get_mail_signature_name('contact_algemeen');
        return $signature;
    }
    if ('_signature_np' == $name) {
        $signature = siw_get_mail_signature_name('contact_np');
        return $signature;
    }
    if ('_signature_project' == $name) {
        $signature = siw_get_mail_signature_name('contact_project');
        return $signature;
    }
    return $output;
}
 * will need to copy the new files to your theme to maintain compatibility. We try to do this.
 * as little as possible, but it does happen. When this occurs the version of the template file will.
 * be bumped and the readme will list any important changes.
 *
 * @see 	    http://docs.woothemes.com/document/template-structure/
 * @author 		WooThemes
 * @package 	WooCommerce/Templates/Emails
 * @version     2.5.0
 */
if (!defined('ABSPATH')) {
    exit;
}
//gegevens aanmelding
$application_number = $order->get_order_number();
//ondertekening
$signature = siw_get_mail_signature_name('aanmelding_groepsproject');
$iban = siw_get_general_information('iban');
//bepaal onderwerp
if ($order->has_status('processing') && 'bacs' != $order->payment_method) {
    $subject = 'Bevestiging aanmelding #' . $application_number;
}
if ($order->has_status('processing') && 'bacs' === $order->payment_method) {
    $subject = 'Bevestiging betaling aanmelding #' . $application_number;
}
if ($order->has_status('on-hold')) {
    $subject = 'Bevestiging aanmelding #' . $application_number;
}
/**
 * @hooked WC_Emails::email_header() Output the email header
 **/
do_action('woocommerce_email_header', $email_heading, $email);