daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. add_filter( 'ulozenka_variable', 'ulozenka_10003_variable', 10, 2 );
  3. function ulozenka_10003_variable( $order_number, $order ){
  4.  
  5.     $vs = get_post_meta( $order->get_id(), 'custom_variable_symbol', true );
  6.     if( !empty( $vs ) ){ return $vs; }
  7.  
  8.     return $order_number;
  9.  
  10. }
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