Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Appointment › How to disable adding vendor to notification emails?
- This topic has 2 replies, 2 voices, and was last updated 4 years, 12 months ago by me.
- AuthorPosts
- November 24, 2019 at 3:08 am #93704meParticipant
Hi,
WCFM Ultimate automatically includes vendors in some emails sent to customers. For example, appointment cancelled emails get sent to the vendor and customer all at once. I want to disable this. In /core/class-wcfmu-wcappointments.php : 79 there is a hook that does this. I can’t disable or override it no matter how I try. Can you give me a snippet or any other method to stop the wcfm_filter_appointment_emails() function from running? I commented it out in your base code for now but that is a very bad solution.
Thanks.
- November 26, 2019 at 3:41 pm #94042WCFM ForumMember
HI,
Please add this lines to your site –
add_filter( 'wcfm_is_allow_new_appointments_vendor_notification', '__return_false' ); add_filter( 'wcfm_is_allow_cancel_appointments_vendor_notification', '__return_false' );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Well, this will work after WCFM Ultimate next update.
Thank You
- November 26, 2019 at 3:56 pm #94052meParticipant
Thanks a lot!
Could you also help me with my other question regarding Stripe Checkout? You keep replying “this will only work with single orders, are you ok with that?” and then stop responding when I say yes.
- AuthorPosts
- The topic ‘How to disable adding vendor to notification emails?’ is closed to new replies.