yit_admin_panel_content_class
The YITH WooCommerce Compare yit admin panel content class hook.
Description
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.
- $yit_admin_panel_content_wrap = apply_filters( 'yit_admin_panel_content_class', $yit_admin_panel_content_wrap );
- if ( !empty( $yit_admin_panel_content_wrap ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the yit_admin_panel_content_class callback
- function filter_yit_admin_panel_content_class( $yit_admin_panel_content_wrap ) {
- // make filter magic happen here...
- return $yit_admin_panel_content_wrap;
- };
- // add the filter
- add_filter( 'yit_admin_panel_content_class', 'filter_yit_admin_panel_content_class', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $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
- $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar';
- $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) ;