Skip to content

Instantly share code, notes, and snippets.

@Niloys7
Created August 6, 2023 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Niloys7/2d78c928885d54a3be08dbeeec2cc762 to your computer and use it in GitHub Desktop.
Save Niloys7/2d78c928885d54a3be08dbeeec2cc762 to your computer and use it in GitHub Desktop.
Order status manager email template Customize by 3rd party plugin
/**
* https://brightplugins.com/docs/how-to-edit-or-override-the-email-templates-for-custom-order-status/
*/
add_filter( 'viwec_accept_email_type', function ($email_types) {
$email_types[] = 'bvos_custom_pickup-point'; // replace it
return $email_types;
}, 9999 );
function register_email_type( $emails ) {
$emails['bvos_custom_pickup-point'] = [
'name' =>; 'Pickup Point', // replace it
];
return $emails;
}
add_filter( 'viwec_register_email_type', 'register_email_type' );
function register_email_sample_subject( $subjects ) {
$subjects['bvos_custom_pickup-point'] = 'Your email subject'; // replac eit
return $subjects;
}
add_filter( 'viwec_sample_subjects', 'register_email_sample_subject' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment