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.
- // run the action
- do_action( 'after_plugin_row_{$plugin_file}', $plugin_file, $plugin_data, $status );
- The following example is for adding a hook callback.
- // define the after_plugin_row_<plugin_file> callback
- function action_after_plugin_row_plugin_file( $plugin_file, $plugin_data, $status ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "after_plugin_row_{$plugin_file}", 'action_after_plugin_row_plugin_file', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "after_plugin_row_{$plugin_file}", 'action_after_plugin_row_plugin_file', 10, 3 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/includes/class-wp-plugins-list-table.php
- do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
- /wp-admin/includes/update.php
- add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );