daily pastebin goal
65%
SHARE
TWEET

WooCommerce - Show purchase notes on the thank-you page

lorro Dec 21st, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // WooCommerce - Show purchase notes in the thank-you page order details table
  3.   add_filter( 'woocommerce_purchase_note_order_statuses', 'custom_purchase_note_order_statuses' );
  4.   function custom_purchase_note_order_statuses( $statuses ) {
  5.     // default: $statuses = array( 'completed', 'processing' )
  6.     $statuses[] = 'on-hold';
  7.     $statuses[] = 'pending';
  8.     return $statuses;
  9.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top