Skip to content

Instantly share code, notes, and snippets.

View Thleruth's full-sized avatar
:shipit:
Pretending to write functional lines and hoping they compile

Thomas Leruth Thleruth

:shipit:
Pretending to write functional lines and hoping they compile
View GitHub Profile
@jessepearson
jessepearson / jp_add_ics_to_woocommerce_emails.php
Last active June 13, 2024 04:18
This function/filter will add ics files from bookings created with WooCommerce Bookings to the Processing and Completed emails sent from WooCommerce itself.
<?php // do not copy this line
/**
* This function/filter will add ics files from bookings created with WooCommerce Bookings to
* the Processing and Completed emails sent from WooCommerce itself.
* @param arr $attachments Current array of attachments being filtered.
* @param str $email_id The id of the email being sent.
* @param obj $order The order for which the email is being sent.
* @return arr The filtered list of attachments.
*/