after_plugin_row_(plugin_file)
Fires after each specific row in the Plugins list table.
The dynamic portion of the hook name, $plugin_file, refers to the path to the plugin file, relative to the plugins directory.
Usage
add_action( 'after_plugin_row_(plugin_file)', 'wp_kama_after_plugin_row_file_action', 10, 3 ); /** * Function for `after_plugin_row_(plugin_file)` action-hook. * * @param string $plugin_file Path to the plugin file relative to the plugins directory. * @param array $plugin_data An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values. * @param string $status Status filter currently applied to the plugin list. Possible values are: 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'. * * @return void */ function wp_kama_after_plugin_row_file_action( $plugin_file, $plugin_data, $status ){ // action... }
- $plugin_file(string)
- Path to the plugin file relative to the plugins directory.
- $plugin_data(array)
- An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
- $status(string)
- Status filter currently applied to the plugin list. Possible values are: 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
Changelog
Since 2.7.0 | Introduced. |
Since 5.5.0 | Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for $status. |
Where the hook is called
after_plugin_row_(plugin_file)
wp-admin/includes/class-wp-plugins-list-table.php 1512
do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
Where the hook is used in WordPress
wp-admin/includes/update.php 437
add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );