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
Built from https://develop.svn.wordpress.org/trunk@25070 git-svn-id: http://core.svn.wordpress.org/trunk@25055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
869724d864
commit
907ca6cd30
|
@ -85,8 +85,11 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$args = false;
|
$args = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$args = apply_filters( 'install_plugins_table_api_args_' . $tab, $args );
|
||||||
|
|
||||||
if ( !$args )
|
if ( !$args )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,11 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$args = false;
|
$args = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$args = apply_filters( 'install_themes_table_api_args_' . $tab, $args );
|
||||||
|
|
||||||
if ( ! $args )
|
if ( ! $args )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue