These hooks let developers customize Email in the Cost Calculator.
ccb_email_attachment
add_filter('ccb_email_attachment', 'add_attachment', 10, 2);
function add_attachment($attachments, $params){
if ( $params['calcId'] == 257) { //change 257 to the ID of your calculator
$attachments[] = ABSPATH .'wp-content/uploads/2023/10/filename.pptx'; //set the ABSOLUTE path to the file here
}
return $attachments;
}ccb_email_rich_text
ccb_email_body_client
ccb_email_body_user
ccb_email_header
ccb_email_footer
ccb_email_date
ccb_email_logo_style
ccb_email_logo_html
ccb_email_title
Last updated
Was this helpful?

