Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: plugin_action_links

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
945                 *                              this can also include 'network_active' and 'network_only' items.
946                 * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
947                 * @param array    $plugin_data An array of plugin data. See `get_plugin_data()`
948                 *                              and the {@see 'plugin_row_meta'} filter for the list
949                 *                              of possible values.
950                 * @param string   $context     The plugin context. By default this can include 'all',
951                 *                              'active', 'inactive', 'recently_activated', 'upgrade',
952                 *                              'mustuse', 'dropins', and 'search'.
953                 */
954                $actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context );
955
956                /**
957                 * Filters the list of action links displayed for a specific plugin in the Plugins list table.
958                 *
959                 * The dynamic portion of the hook name, `$plugin_file`, refers to the path
960                 * to the plugin file, relative to the plugins directory.
961                 *
962                 * @since 2.7.0
963                 * @since 4.9.0 The 'Edit' link was removed from the list of action links.