apply_filters( 'plugin_install_action_links', string[] $action_links, array $plugin )

Filters the install action links for a plugin.


Parameters

$action_links string[]
An array of plugin action links.
Defaults are links to Details and Install Now.
$plugin array
An array of plugin data. See plugins_api() for the list of possible values.
More Arguments from plugins_api( ... $args ) Array or object of arguments to serialize for the Plugin Info API.
  • slug string
    The plugin slug.
  • per_page int
    Number of plugins per page. Default 24.
  • page int
    Number of current page. Default 1.
  • number int
    Number of tags or categories to be queried.
  • search string
    A search term.
  • tag string
    Tag to filter plugins.
  • author string
    Username of an plugin author to filter plugins.
  • user string
    Username to query for their favorites.
  • browse string
    Browse view: 'popular', 'new', 'beta', 'recommended'.
  • locale string
    Locale to provide context-sensitive results. Default is the value of get_locale() .
  • installed_plugins string
    Installed plugins to provide context-sensitive results.
  • is_ssl bool
    Whether links should be returned with https or not. Default false.
  • fields array
    Array of fields which should or should not be returned.
    • short_description bool
      Whether to return the plugin short description. Default true.
    • description bool
      Whether to return the plugin full description. Default false.
    • sections bool
      Whether to return the plugin readme sections: description, installation, FAQ, screenshots, other notes, and changelog. Default false.
    • tested bool
      Whether to return the 'Compatible up to' value. Default true.
    • requires bool
      Whether to return the required WordPress version. Default true.
    • requires_php bool
      Whether to return the required PHP version. Default true.
    • rating bool
      Whether to return the rating in percent and total number of ratings.
      Default true.
    • ratings bool
      Whether to return the number of rating for each star (1-5). Default true.
    • downloaded bool
      Whether to return the download count. Default true.
    • downloadlink bool
      Whether to return the download link for the package. Default true.
    • last_updated bool
      Whether to return the date of the last update. Default true.
    • added bool
      Whether to return the date when the plugin was added to the wordpress.org repository. Default true.
    • tags bool
      Whether to return the assigned tags. Default true.
    • compatibility bool
      Whether to return the WordPress compatibility list. Default true.
    • homepage bool
      Whether to return the plugin homepage link. Default true.
    • versions bool
      Whether to return the list of all available versions. Default false.
    • donate_link bool
      Whether to return the donation link. Default true.
    • reviews bool
      Whether to return the plugin reviews. Default false.
    • banners bool
      Whether to return the banner images links. Default false.
    • icons bool
      Whether to return the icon links. Default false.
    • active_installs bool
      Whether to return the number of active installations. Default false.
    • group bool
      Whether to return the assigned group. Default false.
    • contributors bool
      Whether to return the list of contributors. Default false.

Top ↑

Source

File: wp-admin/includes/class-wp-plugin-install-list-table.php. View all references

$action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );


Top ↑

Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.