Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mauriciogofas/685ad8678c779fe57946 to your computer and use it in GitHub Desktop.
Save mauriciogofas/685ad8678c779fe57946 to your computer and use it in GitHub Desktop.
Adds a print button to the top of estimates and invoices.
<?php
/**
* Adds a print button to the top of estimates and invoices.
* @return type
*/
function si_print_button() {
?>
<a href="javascript:window.print()" id="print_button" class="button print_button"><?php si_e('Imprimir') ?></a>
<?php
}
add_action( 'si_doc_actions_pre', 'si_print_button' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment