ms_user_list_site_class WordPress Filter Hook

The ms_user_list_site_class WordPress hook is used to modify the class attribute of the site list item in the My Sites list.

apply_filters( 'ms_user_list_site_class', string[] $site_classes, int $site_id, int $network_id, WP_User $user ) #

Filters the span class for a site listing on the mulisite user list table.


Parameters

$site_classes

(string[])Array of class names used within the span tag. Default "site-#" with the site's network ID.

$site_id

(int)Site ID.

$network_id

(int)Network ID.

$user

(WP_User)WP_User object.


Top ↑

Source

File: wp-admin/includes/class-wp-ms-users-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.2.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.