/** * Echo the invoice terms * @param integer $id * @return string */ function si_invoice_terms($id = 0) { if (!$id) { $id = get_the_ID(); } echo apply_filters('si_invoice_terms', si_get_invoice_terms($id), $id); }
<div id="doc_notes"> <h2><?php _e('Notes', 'sprout-invoices'); ?> </h2> <?php si_invoice_notes(); ?> </div><!-- #doc_notes --> <?php } ?> <?php if (strlen(si_get_invoice_terms()) > 1) { ?> <?php do_action('si_document_terms'); ?> <div id="doc_terms"> <h2><?php _e('Terms', 'sprout-invoices'); ?> </h2> <?php si_invoice_terms(); ?> </div><!-- #doc_terms --> <?php
/** * Echo the invoice terms * @param integer $id * @return string */ function si_invoice_terms($id = 0) { if (!$id) { global $post; $id = $post->ID; } echo apply_filters('si_invoice_terms', si_get_invoice_terms($id), $id); }