wc_comparison_page_google_fonts

The WooCommerce Compare Products LITE wc comparison page google fonts hook.

Description

apply_filters( 'wc_comparison_page_google_fonts', (unknown) $google_fonts ); 

Parameters (1)

0. $google_fonts (unknown)
The google fonts.

Usage

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

Defined (1)

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

/classes/class-wc-compare-filter.php  
  1. $google_fonts = apply_filters( 'wc_comparison_page_google_fonts', $google_fonts );