Created
January 20, 2019 09:54
-
-
Save Musilda/48cc8f436afb0f5a2974845e47379654 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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