after_plugin_row
Action HookDescription
Fires after each row in the Plugins list table. to possible values for `$status`.Hook Information
File Location |
wp-admin/includes/class-wp-plugins-list-table.php
View on GitHub
|
Hook Type | Action |
Line Number | 1491 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$plugin_file
|
Path to the plugin file relative to the plugins directory. |
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. |
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 after_plugin_row
add_action('after_plugin_row', 'my_custom_function', 10, 3);
function my_custom_function($plugin_file, $plugin_data, $status) {
// Your custom code here
}
Source Code Context
wp-admin/includes/class-wp-plugins-list-table.php:1491
- How this hook is used in WordPress core
<?php
1486 * @param string $status Status filter currently applied to the plugin list.
1487 * Possible values are: 'all', 'active', 'inactive',
1488 * 'recently_activated', 'upgrade', 'mustuse', 'dropins',
1489 * 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
1490 */
1491 do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );
1492
1493 /**
1494 * Fires after each specific row in the Plugins list table.
1495 *
1496 * The dynamic portion of the hook name, `$plugin_file`, refers to the path
PHP Documentation
<?php
/**
* Fires after each row in the Plugins list table.
*
* @since 2.3.0
* @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled'
* to possible values for `$status`.
*
* @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'.
*/
Quick Info
- Hook Type: Action
- Parameters: 3
- File: wp-admin/includes/class-wp-plugins-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.