跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Admin Users Logged In

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Admin Users Logged In

作者:Marcel Pol
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Dashboard widget that shows admin users and when they were last logged in.

Compatibility

This plugin is compatible with ClassicPress.

Contributions

This plugin is also available in
Codeberg.

屏幕截图

  • Dashboard widget with admin users and their last login.

安装

Installation

  • Install the plugin through the admin page “Plugins”.
  • Alternatively, unpack and upload the contents of the zipfile to your ‘/wp-content/plugins/’ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • Visit the Dashboard. That’s it.

PHP filters for Custom Roles

This first filter is for showing an additional role in the widget.

<?php
    function my_auli_get_role__in( $role__in ) {
        $role__in[] = 'Subscriber';
        return $role__in;
    }
    add_filter( 'auli_get_role__in', 'my_auli_get_role__in' );
?>

This second filter is for who gets to see the widget.

<?php
    function my_auli_show_for_role__in( $role__in ) {
        $role__in[] = 'Customrole';
        return $role__in;
    }
    add_filter( 'auli_show_for_role__in', 'my_auli_show_for_role__in' );
?>

评价

Perfect

Pieterjan Deneys 2021 年 6 月 2 日
Thanks to the easily editable language file, I was able to translate this plugin to my wishes. 🙂 Edit: which is now possible! THANKS!
阅读所有1条评价

贡献者及开发者

「Admin Users Logged In」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Marcel Pol

「Admin Users Logged In」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Admin Users Logged In」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.6

  • 2024-10-02
  • Loading plugin translations should be delayed until init action (in this case admin_init).
  • Use DIR for loading translations instead of dirname(FILE).
  • Better check for direct access of files.

1.0.5

  • 2022-05-11
  • Add filter ‘auli_get_role__in’ for showing users with these roles.
  • Remove check for shown users based on capability.
  • Add filter ‘auli_show_for_role__in’ for allowing users to see this widget.
  • No need to check if function ‘current_user_can()’ exists.

1.0.4

  • 2021-06-01
  • Support translations.

1.0.3

  • 2021-05-31
  • Small updates from wpcs.

1.0.2

  • 2018-02-06
  • Fix the location of closing (outside the loop).

1.0.1

  • 2018-02-03
  • Only show the widget on capability ‘edit_posts’.

1.0.0

  • 2018-01-18
  • First release.

额外信息

  • 版本 1.0.6
  • 最后更新:2 周前
  • 活跃安装数量 100+
  • WordPress 版本 4.4 或更高版本
  • 已测试的最高版本为 6.9
  • PHP 版本 7.0 或更高版本
  • 语言

    Dutch 、 Dutch (Belgium) 和 English (US).

    翻译成简体中文

  • 标签
    dashboard widgetlast login
  • 高级视图

评级

5 星(最高 5 星)。
  • 1 条 5 星评价 5 星 1
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Marcel Pol

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗