Advertisement
majeedraza

WooCommerce - Show purchase notes on the thank-you page

Dec 21st, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement