/**
  * Echo the invoice po_number
  * @param  integer $id
  * @return string
  */
 function si_invoice_po_number($id = 0)
 {
     if (!$id) {
         $id = get_the_ID();
     }
     echo apply_filters('si_invoice_po_number', si_get_invoice_po_number($id), $id);
 }
示例#2
0
								<dl class="invoice_number">
									<dt><span class="dt_heading"><?php 
    _e('Invoice Number', 'sprout-invoices');
    ?>
</span></dt>
									<dd><?php 
    si_invoice_id();
    ?>
</dd>
								</dl>
							<?php 
}
?>

							<?php 
if (si_get_invoice_po_number()) {
    ?>
								<dl class="invoice_po_number">
									<dt><span class="dt_heading"><?php 
    _e('PO Number', 'sprout-invoices');
    ?>
</span></dt>
									<dd><?php 
    si_invoice_po_number();
    ?>
</dd>
								</dl>
							<?php 
}
?>
示例#3
0
 /**
  * Echo the invoice po_number
  * @param  integer $id 
  * @return string      
  */
 function si_invoice_po_number($id = 0)
 {
     if (!$id) {
         global $post;
         $id = $post->ID;
     }
     echo apply_filters('si_invoice_po_number', si_get_invoice_po_number($id), $id);
 }