wpp_pdf_tabs

The WooCommerce PDF & Print wpp pdf tabs function.

Description

wpp_pdf_tabs( $title_html, $content_html ); 

Parameters (2)

0. $title_html
The title html.
1. $content_html
The content html.

Usage

  1. if ( !function_exists( 'wpp_pdf_tabs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-pdf-print/template/save_as_pdf.php'; 
  3.  
  4. // The title html. 
  5. $title_html = null; 
  6.  
  7. // The content html. 
  8. $content_html = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wpp_pdf_tabs($title_html, $content_html); 
  12.  

Defined (1)

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

/template/save_as_pdf.php  
  1. function wpp_pdf_tabs($title_html, $content_html) { 
  2. foreach($title_html as $k => $title) { $h .= ((trim(strip_tags($content_html[$k]))) ? "\r\n\r\n<h2>".$title."</h2><br>\r\n<p>".$content_html[$k].'</p><br>' : '' );} return $h;