yit_plugin_panel_sidebar_widgets

Filter widgets.

Description

apply_filters( 'yit_plugin_panel_sidebar_widgets', (unknown) $this_widgets, (string) $page_name ); 

Parameters (2)

0. $this_widgets (unknown)
The this widgets.
1. $page_name (string)
The page name.

Usage

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

Defined (1)

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

/plugin-fw/lib/yit-plugin-panel-sidebar.php  
  1. $this->widgets = apply_filters( 'yit_plugin_panel_sidebar_widgets', $this->widgets, $page_name );