after_plugin_row_(plugin_file) хук-событиеWP 2.7.0

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.

Использование

add_action( 'after_plugin_row_(plugin_file)', 'wp_kama_after_plugin_row_file_action', 10, 3 );

/**
 * Function for `after_plugin_row_(plugin_file)` action-hook.
 * 
 * @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'.
 *
 * @return void
 */
function wp_kama_after_plugin_row_file_action( $plugin_file, $plugin_data, $status ){

	// action...
}
$plugin_file(строка)
Path to the plugin file relative to the plugins directory.
$plugin_data(массив)
An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
$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'.

Список изменений

С версии 2.7.0 Введена.
С версии 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for $status.

Где вызывается хук

WP_Plugins_List_Table::single_row()
after_plugin_row_(plugin_file)
wp-admin/includes/class-wp-plugins-list-table.php 1357
do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );

Где используется хук в WordPress

wp-admin/includes/update.php 411
add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );