/** * Echo the invoice notes * @param integer $id * @return string */ function si_invoice_notes($id = 0) { if (!$id) { $id = get_the_ID(); } echo apply_filters('si_invoice_notes', si_get_invoice_notes($id), $id); }
<section id="doc_line_items_wrap" class="clearfix"> <div id="doc_line_items" class="clearfix"> <?php do_action('si_doc_line_items', get_the_id()); ?> </div><!-- #doc_line_items --> </section> <section id="doc_notes"> <?php if (strlen(si_get_invoice_notes()) > 1) { ?> <?php do_action('si_document_notes'); ?> <div id="doc_notes"> <h2><?php _e('Notes', 'sprout-invoices'); ?> </h2> <?php si_invoice_notes(); ?> </div><!-- #doc_notes --> <?php
/** * Echo the invoice notes * @param integer $id * @return string */ function si_invoice_notes($id = 0) { if (!$id) { global $post; $id = $post->ID; } echo apply_filters('si_invoice_notes', si_get_invoice_notes($id), $id); }