WP_MS_Sites_List_Table::column_plugins() WordPress Method
The column_plugins() method is used to display the plugins associated with a WordPress site in the WordPress Multisite Sites List Table. This method takes one argument, which is the site ID. The column_plugins() method first gets the list of plugins associated with the site from the WordPress database. It then loops through the list of plugins and displays the name and version of each plugin. Finally, it returns the number of plugins associated with the site.
WP_MS_Sites_List_Table::column_plugins( array $blog ) #
Handles the plugins column output.
Parameters
- $blog
(array)(Required)Current site.
Source
File: wp-admin/includes/class-wp-ms-sites-list-table.php
public function column_plugins( $blog ) { if ( has_filter( 'wpmublogsaction' ) ) { /** * Fires inside the auxiliary 'Actions' column of the Sites list table. * * By default this column is hidden unless something is hooked to the action. * * @since MU (3.0.0) * * @param int $blog_id The site ID. */ do_action( 'wpmublogsaction', $blog['blog_id'] ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |