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
| <?php | |
| add_filter( 'bp_email_set_reply_to', function( $retval ) { | |
| return new BP_Email_Recipient( '[email protected]' ); | |
| } ); |
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
| <?php | |
| // Add namespace for media:image element used below | |
| add_filter( 'rss2_ns', function(){ | |
| echo 'xmlns:media="http://search.yahoo.com/mrss/"'; | |
| }); | |
| // insert the image object into the RSS item | |
| add_action('rss2_item', function(){ | |
| global $post; | |
| if (has_post_thumbnail($post->ID)){ |
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
| <?php | |
| // Add Downloadable Products to Woocommerce Completed Order & Invoice Emails as Attachments | |
| add_filter( 'woocommerce_email_attachments', 'woocommerce_emails_attach_downloadables', 10, 3); | |
| function woocommerce_emails_attach_downloadables($attachments, $status, $order) { | |
| if ( ! is_object( $order ) || ! isset( $status ) ) { | |
| return $attachments; | |
| } | |
| if ( empty( $order ) ) { | |
| return $attachments; |