yit_show_upgrade_to_premium_version

Add Premium Version upgrade menu item.

Description

apply_filters( 'yit_show_upgrade_to_premium_version', (unknown) $isset_submenu_yit_plugin_panel_how_to ); 

Parameters (1)

0. $isset_submenu_yit_plugin_panel_how_to (unknown) => ! isset( $submenu['yit_plugin_panel']['how_to'] )
The isset submenu yit plugin panel how to.

Usage

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

Defined (1)

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

/plugin-fw/lib/yit-plugin-panel.php  
  1. if( apply_filters( 'yit_show_upgrade_to_premium_version', ! isset( $submenu['yit_plugin_panel']['how_to'] ) ) ) {