wpp_oo_tabs

The WooCommerce PDF & Print wpp oo tabs function.

Description

wpp_oo_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_oo_tabs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-pdf-print/template/save_as_word_document_oo.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_oo_tabs($title_html, $content_html); 
  12.  

Defined (1)

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

/template/save_as_word_document_oo.php  
  1. function wpp_oo_tabs($title_html, $content_html) { 
  2. foreach($title_html as $k => $title) { $h .= ((trim(strip_tags($content_html[$k]))) ? "<h2 style=\"color:#333333\">".$title."</h2><p>".$content_html[$k].'</p>' : '' );} 
  3. if( !get_option( 'wpp_T_custom_tab')) $h = ''; 
  4. return $h;