diff --git a/templates/project-invoices.php b/templates/project-invoices.php
index 2dcdbb7..ce5c624 100644
--- a/templates/project-invoices.php
+++ b/templates/project-invoices.php
@@ -16,7 +16,7 @@
|
|
|
- |
+ |
|
@@ -49,16 +49,18 @@
invoice_number );
- if ( ! empty( $invoice_link ) ) {
+ $invoice_url = \apply_filters( 'orbis_invoice_url', '', $invoice->invoice_data );
+ $invoice_text = \apply_filters( 'orbis_invoice_text', $invoice->invoice_number, $invoice->invoice_data );
+
+ if ( '' !== $invoice_url ) {
printf(
'%s',
- esc_attr( $invoice_link ),
- esc_html( $invoice->invoice_number )
+ esc_url( $invoice_url ),
+ esc_html( $invoice_text )
);
} else {
- echo esc_html( $invoice->invoice_number );
+ echo esc_html( $invoice_text );
}
if ( get_post_meta( $post->ID, '_orbis_project_invoice_number', true ) === $invoice->invoice_number ) {
|