Main Menu
Sub Menu

wpdm_email_template_##email_template_id## – Customize Email Template

Description


You can use this filter to customize the email message before you send it. Replace ##email_template_id## with email template id like default or user-signup or password-reset. So, if you want to customize user signup email, the filter will be wpdm_email_template_user-signup

Parameters


One parameter is passed to this hook.

Usage


To apply any custom lock to packages.
<?php add_filter('wpdm_email_template_user-signup','customize_user_signup_email'); ?>

Examples


<?php
add_filter('wpdm_email_template_user-signup','customize_user_signup_email');
function customize_user_signup_email($template){
   //check your lock here, return true for lock or return $lock
   $template['message'] = "....customized message....";
   return $template;
}
?>

Related