yit_video_youtube

The YITH WooCommerce Compare yit video youtube hook.

Description

apply_filters( 'yit_video_youtube', (unknown) $ob_get_clean ); 

Parameters (1)

0. $ob_get_clean (unknown) => ob_get_clean()
The ob get clean.

Usage

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

Defined (1)

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

/plugin-fw/lib/yit-video.php  
  1. $html = apply_filters( 'yit_video_youtube', ob_get_clean() );