render_order_vat_evidence_list

The WooCommerce EU VAT Assistant render order vat evidence list function.

Description

render_order_vat_evidence_list( array $vat_evidence, array $labels ); 

Parameters (2)

0. $vat_evidence
The vat evidence.
1. $labels
The labels.

Usage

  1. if ( !function_exists( 'render_order_vat_evidence_list' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-eu-vat-assistant/src/views/admin/order-vat-info-box.php'; 
  3.  
  4. // The vat evidence. 
  5. $vat_evidence = array $vat_evidence; 
  6.  
  7. // The labels. 
  8. $labels = array $labels; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = render_order_vat_evidence_list($vat_evidence, $labels); 
  12.  

Defined (1)

The function is defined in the following location(s).

/src/views/admin/order-vat-info-box.php  
  1. function render_order_vat_evidence_list(array $vat_evidence, array $labels) { 
  2. ?> 
  3. <table class="data"> 
  4. <tbody><?php 
  5. foreach($vat_evidence as $evidence_key => $evidence_value) { ?> 
  6. <tr> 
  7. <td class="label"><?php echo $labels[$evidence_key]; ?></td> 
  8. <td class="value"><?php echo $evidence_value; ?></td> 
  9. </tr> 
  10. <?php } ?> 
  11. </tbody> 
  12. </table> 
  13. <?php