Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi committed Nov 7, 2023
1 parent 6224945 commit 01defc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/class-wcpdf-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1599,11 +1599,12 @@ public function display_due_date( string $document_type, $order ): void {
return;
}

$due_date = apply_filters( "wpo_wcpdf_{$document->slug}_due_date_display", date( wcpdf_date_format( $this, 'due_date' ), $due_date_timestamp ), $due_date_timestamp, $order, $document_type );
$due_date = apply_filters( "wpo_wcpdf_{$document->slug}_due_date_display", date( wcpdf_date_format( $this, 'due_date' ), $due_date_timestamp ), $due_date_timestamp, $order, $document_type );
$due_date_title = is_callable( array( $document, 'get_due_date_title' ) ) ? $document->get_due_date_title() : __( 'Due Date:', 'woocommerce-pdf-invoices-packing-slips' );

if ( ! empty( $due_date ) ) {
echo '<tr class="due-date">
<th>', $document->get_due_date_title(), '</th>
<th>', $due_date_title, '</th>
<td>', $due_date, '</td>
</tr>';
}
Expand Down

0 comments on commit 01defc0

Please sign in to comment.