wphooks.info - install_plugins_table_api_args_{$tab}

install_plugins_table_api_args_{$tab}

The hook occurs in the following file:

wp-admin/includes/class-wp-plugin-install-list-table.php:
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
		/**
		 * Filters API request arguments for each Plugin Install screen tab.
		 *
		 * The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs.
		 * Default tabs include 'featured', 'popular', 'recommended', 'favorites', and 'upload'.
		 *
		 * @since 3.7.0
		 *
		 * @param array|bool $args Plugin Install API arguments.
		 */
		$args = apply_filters( "install_plugins_table_api_args_{$tab}", $args );

		if ( !$args )
			return;

		$api = plugins_api( 'query_plugins', $args );

		if ( is_wp_error( $api ) ) {
			$this->error = $api;
			return;