woocommerce_custom_product_tabs_lite_heading

The WooCommerce Custom Product Tabs Lite woocommerce custom product tabs lite heading hook.

Description

apply_filters( 'woocommerce_custom_product_tabs_lite_heading', (string) $h2_tab_title_h2, (unknown) $tab ); 

Parameters (2)

0. $h2_tab_title_h2 (string) => '

' . $tab['title'] . '

'
The h2 tab title h2.
1. $tab (unknown)
The tab.

Usage

To run the hook, copy the example below.
  1. $h2_tab_title_h2 = apply_filters( 'woocommerce_custom_product_tabs_lite_heading', $h2_tab_title_h2, $tab ); 
  2.  
  3. if ( !empty( $h2_tab_title_h2 ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_custom_product_tabs_lite_heading callback 
  2. function filter_woocommerce_custom_product_tabs_lite_heading( $h2_tab_title_h2, $tab ) { 
  3. // make filter magic happen here... 
  4. return $h2_tab_title_h2
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_custom_product_tabs_lite_heading', 'filter_woocommerce_custom_product_tabs_lite_heading', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_custom_product_tabs_lite_heading', 'filter_woocommerce_custom_product_tabs_lite_heading', 10, 2 ); 

Defined (1)

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

/woocommerce-custom-product-tabs-lite.php  
  1. echo apply_filters( 'woocommerce_custom_product_tabs_lite_heading', '<h2>' . $tab['title'] . '</h2>', $tab );