How to create plugin list groups?
How do I create more of these?
so that i can create proper plugins categories in the network plugin dashboard of wordpress.
How do I create more of these?
so that i can create proper plugins categories in the network plugin dashboard of wordpress.
solved with the plugin: "plugin categories" .
Edited to explain how it works:
there are no hooks for the screenshot I posted, therefore the only solution is to offer a way to store categories relations into the database.
The plugin uses options table to store the data, ad saves through ajax.
Hooks into the columns display of the plugin page and offers an action link to edit the categories.
I added a bulk action to append categories to a group of plugins through default wordpress checkboxes.
To display only plugins belonging to different categories the plugin filters the view-all table eliminating the excluded ones.
Displaying some custom text there can be done using views_plugins
filter:
add_filter('views_plugins', 'add_plugins_views', 10, 1);
function add_plugin_views($views) {
$views['foo'] => 'bar (?)';
return $views;
}
If what you need is actually setting a property for all plugins and display a count of this custom property you might want to take a look at WP_Plugins_List_Table.
Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.