Last active
August 7, 2019 19:06
-
-
Save Musilda/ca5f634507fd02f1bb7d33f889326979 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 | |
$description = 'Proforma za objednávku č: '.$order_id; | |
$data['Description'] = apply_filters( 'idoklad_proforma_description', $description, $order_id ); | |
add_filter( 'idoklad_proforma_description', 'toret_change_idoklad_proforma_description', 10, 2 ); | |
function toret_change_idoklad_proforma_description( $description, $order_id ){ | |
return 'Zálohovka'; | |
} | |
$description = 'Faktura za objednávku č: '.$order_id; | |
$data['Description'] = apply_filters( 'idoklad_invoice_description', $description, $order_id ); | |
add_filter( 'idoklad_invoice_description', 'toret_change_idoklad_invoice_description', 10, 2 ); | |
function toret_change_idoklad_invoice_description( $description, $order_id ){ | |
return 'Mega faktura za objednávku!'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment