Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Musilda
Created January 20, 2019 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Musilda/48cc8f436afb0f5a2974845e47379654 to your computer and use it in GitHub Desktop.
Save Musilda/48cc8f436afb0f5a2974845e47379654 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'ulozenka_variable', 'ulozenka_10003_variable', 10, 2 );
function ulozenka_10003_variable( $order_number, $order ){
$vs = get_post_meta( $order->get_id(), 'custom_variable_symbol', true );
if( !empty( $vs ) ){ return $vs; }
return $order_number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment