| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Function to send customer quote email notification to customer |
| 5 |
* |
| 6 |
* @since 1.0.0 |
| 7 |
* @param int $quote_id ID of post/quote |
| 8 |
* @return bool $sent email sent or not |
| 9 |
*/ |
| 10 |
function wpinv_user_quote_notification( $quote_id ) { |
| 11 |
|
| 12 |
$quote = new WPInv_Invoice( $quote_id ); |
| 13 |
|
| 14 |
if ( ! $quote->is_quote() ) { |
| 15 |
return; |
| 16 |
} |
| 17 |
|
| 18 |
$GLOBALS['wpinv_quotes']->send_user_quote_email( $quote ); |
| 19 |
|
| 20 |
} |
| 21 |
|