yit_admin_panel_content_class

The YITH WooCommerce Wishlist yit admin panel content class hook.

Description

apply_filters( 'yit_admin_panel_content_class', (string) $yit_admin_panel_content_wrap ); 

Parameters (1)

0. $yit_admin_panel_content_wrap (string) => 'yit-admin-panel-content-wrap'
The yit admin panel content wrap.

Usage

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

Defined (3)

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

/plugin-fw/templates/panel/woocommerce/woocommerce-form.php  
  1. $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar'; 
/plugin-fw/lib/yit-plugin-panel.php  
  1. $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar'; 
  1. $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) ;