Exclude Calendar .ics attachment from emails

Posted · Add Comment

Scheduler Forums BirchPress Scheduler Exclude Calendar .ics attachment from emails

This topic contains 4 replies, has 3 voices, and was last updated by  Jennifer 8 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24879

    Snir Avidan
    Participant

    Is there an easy way for me to exclude the .ics calendar invite after someone successfully submits a schedule request?

    Thank you.

    #24881

    Jennifer
    Keymaster

    Hi Snir,

    Please add the following code to WP admin > Appointments >Settings> Custom Code > PHP text box:

    <?php
    
    add_filter('birchschedule_enotification_has_attachment', 'birchschedule_cc_enotification_has_attachment', 10, 3);
    
    function birchschedule_cc_enotification_has_attachment($has, $to, $template_name) {
    return false;
    }
    
    ?>
    #24898

    Snir Avidan
    Participant

    That worked great. Thank you for your help.

    #28804

    Tiago
    Participant

    When i add the code it don’t work. This is my code:

    add_filter(‘birchschedule_icalendar_get_appointment1on1_description_template’,
    ‘birchschedule_cc_icalendar_get_appointment1on1_description_template’);

    function birchschedule_cc_icalendar_get_appointment1on1_description_template($template) {
    return “APPOINTMENT DETAILS \n” .
    “Wat: {service_name} \n” .
    “Verkoper: {staff_name} \n” .
    “Wanneer: {datetime} \n” .
    “Adres: {field_6}, {field_11} \n” .
    “CLIENT DETAILS \n” .
    “Naam/namen: {client_name} \n” .
    “Email: {client_email} \n” .
    “Telefoonnummer: {client_phone} \n” .
    “Feestdatum: {field_4} \n” .
    “Soort feest: {field_9} \n” .
    “Overige: {field_12} \n” .
    “Afspraak details: {appointment_notes} \n”.
    “Afspraak annuleren: {cancel_url} \n”.
    “Afspraak wijzigen: {reschedule_url} \n”;
    }

    <?php

    add_filter(‘birchschedule_enotification_has_attachment’, ‘birchschedule_cc_enotification_has_attachment’, 10, 3);

    function birchschedule_cc_enotification_has_attachment($has, $to, $template_name) {
    return false;
    }

    ?>

    #28811

    Jennifer
    Keymaster

    Hi Tiago,

    Please submit a ticket.

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘BirchPress Scheduler’ is closed to new topics and replies.

Comments are closed.