Filter hook 'install_plugins_tabs'

in WP Core File wp-admin/includes/class-wp-plugin-install-list-table.php at line 135

View Source

install_plugins_tabs

Filter Hook
Description
Filters the tabs shown on the Add Plugins screen.

Hook Information

File Location wp-admin/includes/class-wp-plugin-install-list-table.php View on GitHub
Hook Type Filter
Line Number 135

Hook Parameters

Type Name Description
string[] $tabs The tabs shown on the Add Plugins screen. Defaults include 'featured', 'popular', 'recommended', 'favorites', and 'upload'.

Usage Examples

Basic Usage
<?php
// Hook into install_plugins_tabs
add_filter('install_plugins_tabs', 'my_custom_filter', 10, 1);

function my_custom_filter($tabs) {
    // Your custom filtering logic here
    return $tabs;
}

Source Code Context

wp-admin/includes/class-wp-plugin-install-list-table.php:135 - How this hook is used in WordPress core
<?php
 130  		 * @since 2.7.0
 131  		 *
 132  		 * @param string[] $tabs The tabs shown on the Add Plugins screen. Defaults include
 133  		 *                       'featured', 'popular', 'recommended', 'favorites', and 'upload'.
 134  		 */
 135  		$tabs = apply_filters( 'install_plugins_tabs', $tabs );
 136  
 137  		/**
 138  		 * Filters tabs not associated with a menu item on the Add Plugins screen.
 139  		 *
 140  		 * @since 2.7.0

PHP Documentation

<?php
/**
		 * Filters the tabs shown on the Add Plugins screen.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $tabs The tabs shown on the Add Plugins screen. Defaults include
		 *                       'featured', 'popular', 'recommended', 'favorites', and 'upload'.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/class-wp-plugin-install-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.