after_plugin_row
Fires after each row in the Plugins list table.
Usage
add_action( 'after_plugin_row', 'wp_kama_after_plugin_row_action', 10, 3 ); /** * Function for `after_plugin_row` 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_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.3.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
wp-admin/includes/class-wp-plugins-list-table.php 1491
do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );