tgmpa_table_data_item

The Onetone tgmpa table data item hook.

Description

apply_filters( 'tgmpa_table_data_item', (unknown) $table_data_i, (unknown) $plugin ); 

Parameters (2)

0. $table_data_i (unknown)
The table data i.
1. $plugin (unknown)
The plugin.

Usage

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

Defined (1)

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

/includes/class-tgm-plugin-activation.php  
  1. $table_data[ $i ] = apply_filters( 'tgmpa_table_data_item', $table_data[ $i ], $plugin );