Disabled processing order email for customer
This commit is contained in:
@@ -129,4 +129,13 @@ function wiaas_create_organization_roles_capabilities() {
|
||||
foreach ($roles as $role) {
|
||||
Groups_Capability::create( array( 'capability' => 'wiaas_' . $role ));
|
||||
}
|
||||
}
|
||||
|
||||
function wiaas_disable_processing_order_email_delivery() {
|
||||
update_option( 'woocommerce_customer_processing_order_settings', array(
|
||||
'enabled' => 'no',
|
||||
'subject' => '',
|
||||
'heading' => '',
|
||||
'mail_type' => 'html'
|
||||
) );
|
||||
}
|
||||
Reference in New Issue
Block a user