after_plugin_row
Fires after each row in the Plugins list table.
Использование
add_action( 'after_plugin_row', 'wp_kama_after_plugin_row_action', 10, 3 ); /** * Function for `after_plugin_row` 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_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.3.0 | Введена. |
С версии 5.5.0 | Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for $status. |
Где вызывается хук
after_plugin_row
wp-admin/includes/class-wp-plugins-list-table.php 1487
do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );