Advertisement
wclovers

Untitled

Nov 24th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. function wcfm_custom_add_invoice_date( $document_type, $order ) {
  2.     ?>
  3.     <tr class="invoice-date">
  4.         <th><?php _e( 'Invoice Date:', 'wc-frontend-manager-ultimate' ); ?></th>
  5.         <td><?php echo date_i18n( wc_date_format(), current_time( 'timestamp', 0 ) ); ?> @<?php echo date_i18n( wc_time_format(), current_time( 'timestamp', 0 ) ); ?></td>
  6.     </tr>
  7.     <?php
  8. }
  9.  
  10. add_action( 'wcfm_pdf_invoice_after_order_data', 'wcfm_custom_add_invoice_date', 999, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement