Add a filter on the Plugin and Theme installers table listing API args, this allows for plugins to hook in and add custom args to plugins_api() and themes_api() for the Plugin/Theme listing tabls. Fixes #18169

git-svn-id: https://develop.svn.wordpress.org/trunk@25070 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2013-08-21 06:51:51 +00:00
parent f671a1e547
commit b4f0fbd985
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;