yit_panel_sidebar_before_widget

The YITH WooCommerce Wishlist yit panel sidebar before widget hook.

Description

do_action( 'yit_panel_sidebar_before_widget', (unknown) $widget_id, (unknown) $widget ); 

Parameters (2)

0. $widget_id (unknown)
The widget id.
1. $widget (unknown)
The widget.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'yit_panel_sidebar_before_widget', $widget_id, $widget ); 
The following example is for adding a hook callback.
  1. // define the yit_panel_sidebar_before_widget callback 
  2. function action_yit_panel_sidebar_before_widget( $widget_id, $widget ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'yit_panel_sidebar_before_widget', 'action_yit_panel_sidebar_before_widget', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'yit_panel_sidebar_before_widget', 'action_yit_panel_sidebar_before_widget', 10, 2 ); 

Defined (1)

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

/plugin-fw/lib/yit-plugin-panel-sidebar.php  
  1. do_action( 'yit_panel_sidebar_before_widget', $widget_id, $widget );