Skip to content

Instantly share code, notes, and snippets.

@Musilda
Last active August 7, 2019 19:06
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/ca5f634507fd02f1bb7d33f889326979 to your computer and use it in GitHub Desktop.
Save Musilda/ca5f634507fd02f1bb7d33f889326979 to your computer and use it in GitHub Desktop.
<?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