yit_panel_<type>
The YITH WooCommerce Compare yit panel type hook.
Description
do_action( 'yit_panel_<type>', (unknown) $option, (unknown) $db_value, (unknown) $custom_attributes );
Parameters (3)
- 0. $option (unknown)
- The option.
- 1. $db_value (unknown)
- The db value.
- 2. $custom_attributes (unknown)
- The custom attributes.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'yit_panel_{$type}', $option, $db_value, $custom_attributes );
- The following example is for adding a hook callback.
- // define the yit_panel_<type> callback
- function action_yit_panel_type( $option, $db_value, $custom_attributes ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "yit_panel_{$type}", 'action_yit_panel_type', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "yit_panel_{$type}", 'action_yit_panel_type', 10, 3 );
Defined (1)
The action is defined in the following location(s).
- /plugin-fw/lib/yit-plugin-panel.php
- do_action( "yit_panel_{$option['type']}", $option, $db_value, $custom_attributes );