wppaste
WordPress

apply_filters( "install_plugins_table_api_args_{$tab}", array|false $args )

Since
3.7.0
Filters API request arguments for each Add Plugins screen tab.

Description

The dynamic portion of the hook name, $tab, refers to the plugin install tabs.

Possible hook names include:

  • install_plugins_table_api_args_favorites
  • install_plugins_table_api_args_featured
  • install_plugins_table_api_args_popular
  • install_plugins_table_api_args_recommended
  • install_plugins_table_api_args_upload
  • install_plugins_table_api_args_search
  • install_plugins_table_api_args_beta

Compatibility

WordPress
since 3.7.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

$argsarray|false
Plugin install API arguments.

Where this hook fires · 1

  • wp-admin/includes/class-wp-plugin-install-list-table.php:236WP_Plugin_Install_List_Table::prepare_items()

Source code

		 *  - `install_plugins_table_api_args_beta`		 *		 * @since 3.7.0		 *		 * @param array|false $args Plugin install API arguments.		 */		$args = apply_filters( "install_plugins_table_api_args_{$tab}", $args ); 		if ( ! $args ) {			return;		} 		$api = plugins_api( 'query_plugins', $args );

Changelog

Introduced in 3.7.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.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 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.