<plugin_slug>

The WordPress Core plugin slug hook.

Description

fs_apply_filter( '<plugin_slug>', (string) $is_submenu_visible, (unknown) $this_get_bool_option_this_default_submenu_items_id_default, (unknown) $id ); 

Parameters (3)

0. $is_submenu_visible (string) => 'is_submenu_visible'
The is submenu visible.
1. $this_get_bool_option_this_default_submenu_items_id_default (unknown)
The this get bool option this default submenu items id default.
2. $id (unknown)
The id.

Usage

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

Defined (1)

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

/freemius/includes/managers/class-fs-admin-menu-manager.php  
  1. return fs_apply_filter(