user_row_actions

过滤钩子


apply_filters( 'user_row_actions', $actions, $user_object )
参数
  • (string[])
    $actions
    An array of action links to be displayed.
    Default ‘Edit’, ‘Delete’ for single site, and
    ‘Edit’, ‘Remove’ for Multisite.
    Required:
  • (WP_User)
    $user_object
    WP_User object for the currently listed user.
    Required:
定义位置
  • wp-admin/includes/class-wp-users-list-table.php
    , line 514
引入
2.8.0
弃用

过滤显示在用户列表表中每个用户下的动作链接。

$actions = apply_filters( 'user_row_actions', $actions, $user_object );