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) $actions, (unknown) $plugin_file, (unknown) $plugin_data, (unknown) $context ); 

Parameters (4)

0. $actions (unknown)
The actions.
1. $plugin_file (unknown)
The plugin file.
2. $plugin_data (unknown)
The plugin data.
3. $context (unknown)
The context.

Usage

To run the hook, copy the example below.
  1. $actions = apply_filters( 'plugin_action_links_{$plugin_file}', $actions, $plugin_file, $plugin_data, $context ); 
  2.  
  3. if ( !empty( $actions ) ) { 
  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( $actions, $plugin_file, $plugin_data, $context ) { 
  3. // make filter magic happen here... 
  4. return $actions
  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).

/adminpages/addons.php  
  1. $actions = apply_filters( 'plugin_action_links_' . $plugin_file, $actions, $plugin_file, $plugin_data, $context );