ms_user_list_site_class

ms_user_list_site_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('ms_user_list_site_class') is found 1 times:

  • /wp-admin/includes/class-wp-ms-users-list-table.php line 398
    			 * @param int      $site_id      Site ID.
    			 * @param int      $network_id   Network ID.
    			 * @param WP_User  $user         WP_User object.
    			 */
    			$site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user );
    
    			if ( is_array( $site_classes ) && ! empty( $site_classes ) ) {
    				$site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) );
    				echo '<span class="' . esc_attr( implode( ' ', $site_classes ) ) . '">';
    			} else {
    				echo '<span>';