Created
August 6, 2023 14:39
-
-
Save Niloys7/2d78c928885d54a3be08dbeeec2cc762 to your computer and use it in GitHub Desktop.
Order status manager email template Customize by 3rd party plugin
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
/** | |
* 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