ms_user_list_site_class

过滤钩子


apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user )
参数
  • (string[])
    $site_classes
    Array of class names used within the span tag. Default “site-#” with the site’s network ID.
    Required:
  • (int)
    $site_id
    Site ID.
    Required:
  • (int)
    $network_id
    Network ID.
    Required:
  • (WP_User)
    $user
    WP_User object.
    Required:
定义位置
  • wp-admin/includes/class-wp-ms-users-list-table.php
    , line 391
引入
5.2.0
弃用

过滤mulisite用户列表表上站点列表的span类。

$site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user );