tgmpa_<prefix>plugin_action_links

The Onetone tgmpa prefix plugin action links hook.

Description

apply_filters( 'tgmpa_<prefix>plugin_action_links', (array) $array, (unknown) $item_slug, (unknown) $item, (unknown) $this_view_context ); 

Parameters (4)

0. $array (array) => array_filter( $action_links )
The array.
1. $item_slug (unknown)
The item slug.
2. $item (unknown)
The item.
3. $this_view_context (unknown)
The this view context.

Usage

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

Defined (1)

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

/includes/class-tgm-plugin-activation.php  
  1. return apply_filters( "tgmpa_{$prefix}plugin_action_links", array_filter( $action_links ), $item['slug'], $item, $this->view_context );