yit_panel_hide_sidebar

The YITH WooCommerce Compare yit panel hide sidebar hook.

Description

apply_filters( 'yit_panel_hide_sidebar', (unknown) $hide, (unknown) $page ); 

Parameters (2)

0. $hide (unknown)
The hide.
1. $page (unknown)
The page.

Usage

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

Defined (1)

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

/plugin-fw/lib/yit-plugin-panel.php  
  1. return apply_filters( 'yit_panel_hide_sidebar', $hide, $page );