/** * Echo the estimate po_number * @param integer $id * @return string */ function si_estimate_po_number($id = 0) { if (!$id) { $id = get_the_ID(); } echo apply_filters('si_estimate_po_number', si_get_estimate_po_number($id), $id); }
<dl class="estimate_number"> <dt><span class="dt_heading"><?php si_e('Estimate Number'); ?> </span></dt> <dd><?php si_estimate_id(); ?> </dd> </dl> <?php } ?> <?php if (si_get_estimate_po_number()) { ?> <dl class="estimate_po_number"> <dt><span class="dt_heading"><?php si_e('PO Number'); ?> </span></dt> <dd><?php si_estimate_po_number(); ?> </dd> </dl> <?php } ?>
/** * Echo the estimate po_number * @param integer $id * @return string */ function si_estimate_po_number($id = 0) { if (!$id) { global $post; $id = $post->ID; } echo apply_filters('si_estimate_po_number', si_get_estimate_po_number($id), $id); }