mbcreation

Adding some text to a specific email with WooCommerce Pretty

Sep 12th, 2017
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. add_action('woocommerce_email_after_order_table', function($order, $sent_to_admin, $plain_text, $email) {
  2.  
  3.    
  4.     if( $email->id === 'customer_completed_order') :
  5.  
  6.         echo '<p>Paragraph Text</p>';
  7.  
  8.     endif;
  9.  
  10. }, 99, 4);
Advertisement
Add Comment
Please, Sign In to add comment