after_plugin_row_<plugin_file>

Fires after each specific row in the Plugins list table.

Description

do_action( 'after_plugin_row_<plugin_file>', (string) $plugin_file, (array) $plugin_data, (string) $status ); 

The dynamic portion(s) of the hook name refer to the path to the plugin file, relative to the plugins directory.

Parameters (3)

0. $plugin_file (string)
Path to the plugin file, relative to the plugins directory.
1. $plugin_data (array)
An array of plugin data.
2. $status (string)
Status of the plugin. Defaults are All,, Active., Inactive, Recently Activated, Upgrade, Must-Use, Drop-ins, Search.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'after_plugin_row_{$plugin_file}', $plugin_file, $plugin_data, $status ); 
The following example is for adding a hook callback.
  1. // define the after_plugin_row_<plugin_file> callback 
  2. function action_after_plugin_row_plugin_file( $plugin_file, $plugin_data, $status ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "after_plugin_row_{$plugin_file}", 'action_after_plugin_row_plugin_file', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "after_plugin_row_{$plugin_file}", 'action_after_plugin_row_plugin_file', 10, 3 ); 

Defined (1)

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

/wp-admin/includes/class-wp-plugins-list-table.php  
  1. do_action( "after_plugin_row_$plugin_file", $plugin_file, $plugin_data, $status );