| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
// Email Settings Helper Functions |
| 7 |
function easy_invoice_is_invoice_email_enabled(): bool { |
| 8 |
return \EasyInvoice\Controllers\SettingsController::isInvoiceEmailEnabled(); |
| 9 |
} |
| 10 |
|
| 11 |
function easy_invoice_get_invoice_email_subject(): string { |
| 12 |
return \EasyInvoice\Controllers\SettingsController::getInvoiceEmailSubject(); |
| 13 |
} |
| 14 |
|
| 15 |
function easy_invoice_get_invoice_email_body(): string { |
| 16 |
return \EasyInvoice\Controllers\SettingsController::getInvoiceEmailBody(); |
| 17 |
} |
| 18 |
|
| 19 |
function easy_invoice_is_quote_email_enabled(): bool { |
| 20 |
return \EasyInvoice\Controllers\SettingsController::isQuoteEmailEnabled(); |
| 21 |
} |
| 22 |
|
| 23 |
function easy_invoice_get_quote_email_subject(): string { |
| 24 |
return \EasyInvoice\Controllers\SettingsController::getQuoteEmailSubject(); |
| 25 |
} |
| 26 |
|
| 27 |
function easy_invoice_get_quote_email_body(): string { |
| 28 |
return \EasyInvoice\Controllers\SettingsController::getQuoteEmailBody(); |
| 29 |
} |
| 30 |
|
| 31 |
function easy_invoice_is_payment_email_enabled(): bool { |
| 32 |
return \EasyInvoice\Controllers\SettingsController::isPaymentEmailEnabled(); |
| 33 |
} |
| 34 |
|
| 35 |
function easy_invoice_get_payment_email_subject(): string { |
| 36 |
return \EasyInvoice\Controllers\SettingsController::getPaymentEmailSubject(); |
| 37 |
} |
| 38 |
|
| 39 |
function easy_invoice_get_payment_email_body(): string { |
| 40 |
return \EasyInvoice\Controllers\SettingsController::getPaymentEmailBody(); |
| 41 |
} |