plugin_row_meta
Filter HookDescription
Filters the array of row meta for each plugin in the Plugins list table. }Hook Information
File Location |
wp-admin/includes/class-wp-plugins-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1259 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$plugin_meta
|
An array of the plugin's metadata, including the version, author, author URI, and plugin URI. |
string
|
$plugin_file
|
Path to the plugin file relative to the plugins directory. |
array
|
$plugin_data
|
{ An array of plugin data. |
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'. |
Usage Examples
Basic Usage
<?php
// Hook into plugin_row_meta
add_filter('plugin_row_meta', 'my_custom_filter', 10, 4);
function my_custom_filter($plugin_meta, $plugin_file, $plugin_data, $status) {
// Your custom filtering logic here
return $plugin_meta;
}
Source Code Context
wp-admin/includes/class-wp-plugins-list-table.php:1259
- How this hook is used in WordPress core
<?php
1254 * @param string $status Status filter currently applied to the plugin list. Possible
1255 * values are: 'all', 'active', 'inactive', 'recently_activated',
1256 * 'upgrade', 'mustuse', 'dropins', 'search', 'paused',
1257 * 'auto-update-enabled', 'auto-update-disabled'.
1258 */
1259 $plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status );
1260
1261 echo implode( ' | ', $plugin_meta );
1262
1263 echo '</div>';
1264
PHP Documentation
<?php
/**
* Filters the array of row meta for each plugin in the Plugins list table.
*
* @since 2.8.0
*
* @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.
*
* @type string $id Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
* @type string $slug Plugin slug.
* @type string $plugin Plugin basename.
* @type string $new_version New plugin version.
* @type string $url Plugin URL.
* @type string $package Plugin update package URL.
* @type string[] $icons An array of plugin icon URLs.
* @type string[] $banners An array of plugin banner URLs.
* @type string[] $banners_rtl An array of plugin RTL banner URLs.
* @type string $requires The version of WordPress which the plugin requires.
* @type string $tested The version of WordPress the plugin is tested against.
* @type string $requires_php The version of PHP which the plugin requires.
* @type string $upgrade_notice The upgrade notice for the new plugin version.
* @type bool $update-supported Whether the plugin supports updates.
* @type string $Name The human-readable name of the plugin.
* @type string $PluginURI Plugin URI.
* @type string $Version Plugin version.
* @type string $Description Plugin description.
* @type string $Author Plugin author.
* @type string $AuthorURI Plugin author URI.
* @type string $TextDomain Plugin textdomain.
* @type string $DomainPath Relative path to the plugin's .mo file(s).
* @type bool $Network Whether the plugin can only be activated network-wide.
* @type string $RequiresWP The version of WordPress which the plugin requires.
* @type string $RequiresPHP The version of PHP which the plugin requires.
* @type string $UpdateURI ID of the plugin for update purposes, should be a URI.
* @type string $Title The human-readable title of the plugin.
* @type string $AuthorName Plugin author's name.
* @type bool $update Whether there's an available update. Default null.
* }
* @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'.
*/
Quick Info
- Hook Type: Filter
- Parameters: 4
- File: wp-admin/includes/class-wp-plugins-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.