yith_plugin_registration_hook

The YITH WooCommerce Compare yith plugin registration hook function.

Description

yith_plugin_registration_hook(); 

Usage

  1. if ( !function_exists( 'yith_plugin_registration_hook' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-compare/plugin-fw/yit-plugin-registration-hook.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yith_plugin_registration_hook(); 
  7.  

Defined (1)

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

/plugin-fw/yit-plugin-registration-hook.php  
  1. function yith_plugin_registration_hook() { 
  2.  
  3. /** 
  4. * @use activate_PLUGINNAME hook 
  5. */ 
  6. $hook = str_replace( 'activate_', '', current_filter() ); 
  7.  
  8. $option = get_option( 'yit_recently_activated', array() ); 
  9. $option[] = $hook; 
  10. update_option( 'yit_recently_activated', $option ); 
  11.  
  12. /** set remote widget transient for first activation */ 
  13. if ( !class_exists( 'YIT_Plugin_Panel_Sidebar' ) ) { 
  14. require_once 'lib/yit-plugin-panel-sidebar.php'; 
  15. YIT_Plugin_Panel_Sidebar::set_transient_for_first_activation();