/** * Is the estimate approved * @param integer $id * @return bool */ function si_is_estimate_declined($id = 0) { if (!$id) { $id = get_the_ID(); } $bool = si_get_estimate_status($id) == 'declined'; return apply_filters('si_is_estimate_declined', $bool, $id); }
echo get_the_title($estimate_id); ?> </a> <?php } else { ?> <?php echo get_the_title($estimate_id); ?> <?php } ?> </td> <?php if (si_get_estimate_status($estimate_id) == 'pending') { ?> <td> <a href="<?php echo esc_url(add_query_arg(array('dashboard' => 'pay'), get_permalink($estimate_id))); ?> " class="est_action_link"><span class="button label"><?php _e('Accept/Decline', 'sprout-invoices'); ?> </span></a> <br/> <?php if (si_get_estimate_expiration_date($estimate_id)) { ?> <small><time datetime="<?php si_estimate_expiration_date($estimate_id);
/** * Is the estimate approved * @param integer $id * @return bool */ function si_is_estimate_declined($id = 0) { if (!$id) { global $post; $id = $post->ID; } $bool = si_get_estimate_status($id) == 'declined'; return apply_filters('si_is_estimate_declined', $bool, $id); }