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.


Top ↑

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'] );
		}
	}


Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.