plugin_action_links_<plugin_file>

Filters the list of action links displayed for a specific plugin in the Plugins list table.

Description

apply_filters( 'plugin_action_links_<plugin_file>', (unknown) $action_links, (unknown) $plugin_file, (null) $null, (string) $all ); 

Parameters (4)

0. $action_links (unknown)
The action links.
1. $plugin_file (unknown)
The plugin file.
2. $null (null) => null
The null.
3. $all (string) => 'all'
The all.

Usage

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

Defined (1)

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

/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php  
  1. $action_links = apply_filters( "plugin_action_links_{$plugin_file}", $action_links, $plugin_file, null, 'all' );