Title: plugins_api_args
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘plugins_api_args’, object $args, string $action )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#wp--skip-link--target)

Filters the WordPress.org Plugin Installation API arguments.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#description)󠁿

Important: An object MUST be returned to this filter.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#parameters)󠁿

 `$args`object

Plugin API arguments.

`$action`string

The type of information being requested from the Plugin Installation API.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#source)󠁿

    ```php
    $args = apply_filters( 'plugins_api_args', $args, $action );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/plugin-install.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/plugin-install.php#L129)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/plugin-install.php#L129-L129)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#related)󠁿

| Used by | Description | 
| [plugins_api()](https://developer.wordpress.org/reference/functions/plugins_api/)`wp-admin/includes/plugin-install.php` |

Retrieves plugin installer pages from the WordPress.org Plugins API.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/plugins_api_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.7.0](https://developer.wordpress.org/reference/since/2.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fplugins_api_args%2F)
before being able to contribute a note or feedback.