plugin_row_meta filter-hookWP 2.8.0

Filters the array of row meta for each plugin in the Plugins list table.

Usage

add_filter( 'plugin_row_meta', 'wp_kama_plugin_row_meta_filter', 10, 4 );

/**
 * Function for `plugin_row_meta` filter-hook.
 * 
 * @param string[] $plugin_meta An array of the plugin's metadata, including the version, author, author URI, and plugin URI.
 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
 * @param array    $plugin_data An array of plugin data.
 * @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 string[]
 */
function wp_kama_plugin_row_meta_filter( $plugin_meta, $plugin_file, $plugin_data, $status ){

	// filter...
	return $plugin_meta;
}
$plugin_meta(string[])
An array of the plugin's metadata, including the version, author, author URI, and plugin URI.
$plugin_file(string)
Path to the plugin file relative to the plugins directory.
$plugin_data(array)

An array of plugin data.

  • id(string)
    Plugin ID, e.g. w.org/plugins/[plugin-name].

  • slug(string)
    Plugin slug.

  • plugin(string)
    Plugin basename.

  • new_version(string)
    New plugin version.

  • url(string)
    Plugin URL.

  • package(string)
    Plugin update package URL.

  • icons(string[])
    An array of plugin icon URLs.

  • banners(string[])
    An array of plugin banner URLs.

  • banners_rtl(string[])
    An array of plugin RTL banner URLs.

  • requires(string)
    The version of WordPress which the plugin requires.

  • tested(string)
    The version of WordPress the plugin is tested against.

  • requires_php(string)
    The version of PHP which the plugin requires.

  • upgrade_notice(string)
    The upgrade notice for the new plugin version.

  • update-supported(true|false)
    Whether the plugin supports updates.

  • Name(string)
    The human-readable name of the plugin.

  • PluginURI(string)
    Plugin URI.

  • Version(string)
    Plugin version.

  • Description(string)
    Plugin description.

  • Author(string)
    Plugin author.

  • AuthorURI(string)
    Plugin author URI.

  • TextDomain(string)
    Plugin textdomain.

  • DomainPath(string)
    Relative path to the plugin's .mo file(s).

  • Network(true|false)
    Whether the plugin can only be activated network-wide.

  • RequiresWP(string)
    The version of WordPress which the plugin requires.

  • RequiresPHP(string)
    The version of PHP which the plugin requires.

  • UpdateURI(string)
    ID of the plugin for update purposes, should be a URI.

  • Title(string)
    The human-readable title of the plugin.

  • AuthorName(string)
    Plugin author's name.

  • update(true|false)
    Whether there's an available update.
    Default: null
$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.8.0 Introduced.

Where the hook is called

WP_Plugins_List_Table::single_row()
plugin_row_meta
wp-admin/includes/class-wp-plugins-list-table.php 1138
$plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status );

Where the hook is used in WordPress

Usage not found.