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 | |
/** | |
* Taxonomies | |
* | |
* This file registers any custom taxonomies | |
* | |
* @package Core_Functionality | |
* @since 1.0.0 | |
* @link https://github.com/billerickson/Core-Functionality | |
* @author Bill Erickson <[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 | |
/* Custom message for subscription products in order complete email */ | |
add_action( 'woocommerce_email_after_order_table', 'wc_completed_email_snippet' ); | |
function wc_completed_email_snippet( $order ) { | |
$order_statuses = array( 'completed' ); // order statuses to enable the email on | |
$display_cats = array( 148, 149 ); // cat ID's of products to display the message on completed emails for | |
if( in_array( $order->status, $order_statuses ) ) | |
return; // only completed orders | |
if( !class_exists( 'WC_Subscriptions_Order' ) || !class_exists( 'WC_Subscriptions_Renewal_Order' ) ) |
NewerOlder