wppaste
WordPress

apply_filters( 'plugin_action_links', string[] $actions, string $plugin_file, array $plugin_data, string $context )

Since
2.5.0, 2.6.0, 4.9.0
Filters the action links displayed for each plugin in the Plugins list table.

Compatibility

WordPress
since 4.9.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$actionsstring[]
An array of plugin action links. By default this can include 'activate', 'deactivate', and 'delete'. With Multisite active this can also include 'network_active' and 'network_only' items.
$plugin_filestring
Path to the plugin file relative to the plugins directory.
$plugin_dataarray
An array of plugin data. See get_plugin_data() and the 'plugin_row_meta' filter for the list of possible values.
$contextstring
The plugin context. By default this can include 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.

Where this hook fires · 1

  • wp-admin/includes/class-wp-plugins-list-table.php:1058WP_Plugins_List_Table::single_row()

Source code

			 *                              and the {@see 'plugin_row_meta'} filter for the list			 *                              of possible values.			 * @param string   $context     The plugin context. By default this can include 'all',			 *                              'active', 'inactive', 'recently_activated', 'upgrade',			 *                              'mustuse', 'dropins', and 'search'.			 */			$actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context ); 			/**			 * Filters the list of action links displayed for a specific plugin 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.

Changelog

Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

4.9.0
The 'Edit' link was removed from the list of action links.from the docblock
2.6.0
The $context parameter was added.from the docblock
2.5.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.