do_action( 'after_plugin_row', string $plugin_file, array $plugin_data, string $status )

Fires after each row in the Plugins list table.


Parameters

$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 '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'.

Top ↑

Source

File: wp-admin/includes/class-wp-plugins-list-table.php. View all references

do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );


Top ↑

Changelog

Changelog
Version Description
5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for $status.
2.3.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Geoffrey

    It seems like the $plugin_data array is composed like the following:

    array (size=27)
      'id' => string '' (length=0)
      'slug' => string '' (length=0)
      'plugin' => string '' (length=0)
      'new_version' => string '1.4.10' (length=6)
      'url' => string '' (length=0)
      'package' => string '' (length=0)
      'icons' => 
        array (size=2)
          '2x' => string '' (length=0)
          '1x' => string '' (length=0)
      'banners' => 
        array (size=1)
          '1x' => string '' (length=0)
      'banners_rtl' => 
        array (size=0)
          empty
      'tested' => string '5.5.3' (length=5)
      'requires_php' => boolean false
      'compatibility' => 
        object(stdClass)[1022]
      'update-supported' => boolean true
      'Name' => string '' (length=0)
      'PluginURI' => string '' (length=0)
      'Version' => string '1.4.9' (length=5)
      'Description' => string '' (length=0)
      'Author' => string '' (length=0)
      'AuthorURI' => string '' (length=0)
      'TextDomain' => string '' (length=0)
      'DomainPath' => string '/languages' (length=10)
      'Network' => boolean false
      'RequiresWP' => string '' (length=0)
      'RequiresPHP' => string '' (length=0)
      'Title' => string '' (length=0)
      'AuthorName' => string '' (length=0)
      'update' => boolean true

    Just FYI. Could be more complete in this documentation page.

    You also have the after_plugin_row_{file} hook that gives you something like after_plugin_row_akismet/akismet.php for instance, it takes the exact same parameters though.

You must log in before being able to contribute a note or feedback.