after_plugin_row_{$plugin_file}
Action HookDescription
Fires after each specific row in the Plugins list table. The dynamic portion of the hook name, `$plugin_file`, refers to the path to the plugin file, relative to the plugins directory. 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 | 1512 |
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_{$plugin_file}
add_action('after_plugin_row_{$plugin_file}', '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:1512
- How this hook is used in WordPress core
<?php
1507 * @param string $status Status filter currently applied to the plugin list.
1508 * Possible values are: 'all', 'active', 'inactive',
1509 * 'recently_activated', 'upgrade', 'mustuse', 'dropins',
1510 * 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
1511 */
1512 do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
1513 }
1514
1515 /**
1516 * Gets the name of the primary column for this specific list table.
1517 *
PHP Documentation
<?php
/**
* Fires after each specific row in the Plugins list table.
*
* The dynamic portion of the hook name, `$plugin_file`, refers to the path
* to the plugin file, relative to the plugins directory.
*
* @since 2.7.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.