jetpack_short_module_description

Filters each module's short description.

Description

apply_filters( 'jetpack_short_module_description', (unknown) $item_description, (unknown) $item_module ); 

Parameters (2)

0. $item_description (unknown)
The item description.
1. $item_module (unknown)
The item module.

Usage

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

Defined (2)

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

/class.jetpack-modules-list-table.php  
  1. echo apply_filters( 'jetpack_short_module_description', $item['description'], $item['module'] ); 
/class.jetpack-admin.php  
  1. $short_desc = apply_filters( 'jetpack_short_module_description', $module_array['description'], $module );