diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 76ef2ce2c1..d78f4e7e15 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -85,8 +85,11 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { default: $args = false; + break; } + $args = apply_filters( 'install_plugins_table_api_args_' . $tab, $args ); + if ( !$args ) return; diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 8a46199f16..bb8328fb1b 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -90,8 +90,11 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { default: $args = false; + break; } + $args = apply_filters( 'install_themes_table_api_args_' . $tab, $args ); + if ( ! $args ) return;