跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

Loginpetze

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

Loginpetze

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

描述

Sometimes it is useful to know if – or when – a user successfully logged in to WordPress. Loginpetze generates a notification mail for this incident. This is a conveniant way to e.g. monitor staging sites for customer logins. No need to regularly take a look at statistics or tracking tools. Mails are customizable with shortcodes. All texts are translatable.

Loginpetze 1.x is not compatible with WordPress Multisite.

Translations

If you wish to help translate this plugin, you are most welcome!
To contribute, please visit translate.wordpress.org

Keep in mind that if you’re not PTE or GTE for your language, you have to notify someone to approve your contributed strings. This can be done via Slack or by writing a request on https://make.wordpress.org/polyglots/

To find the translation team for your locale, please visit https://make.wordpress.org/polyglots/teams/

Credits

Special Thanks go to Bernhard Kau, Torsten Landsiedel, Bego Mario Garde and Thorsten Frommen.

屏幕截图

  • The only screen for Loginpetze. All texts are translatable.

安装

From WordPress Plugin Directory

  1. In your backend, go to Plugins → Add New to search for Loginpetze in the WordPress Plugin Directory.
  2. Click Install Now and then Activate.
  3. After activation go to Settings → Loginpetze to set up the few options this plugin offers.

Manual Installation

  1. Download loginpetze.zip to your desktop and extract the archive.
  2. Upload the folder loginpetze into the directory /wp-content/plugins/ on your webserver.
  3. Activate Loginpetze via the Plugins menu in your WordPress Dashboard.
  4. After activation go to Settings → Loginpetze to set up the few options this plugin offers.

常见问题

«Loginpetze» – what kind of name is that?

It’s the german word for «login snitch».

How does it work?

In short: you install it, you select a user to receive the notification mails and you’re done.

If you like to, you can customize the subject and body of the mails. There are placeholders available that you can insert into your template: username, blogname, date and time.

Can I suppress notifications for certain users or roles?

Yes, there’s a filter for that. Add the following lines to your (child) theme’s functions.php and customize the array – you can provide usernames, IDs and roles (even mixed) in an array.

add_filter( 'loginpetze_blockers', function ( $ignorelist ) {
    $ignorelist = array ( 'username', '123', 'administrator' ) ;
    return $ignorelist;
} );

Is the plugin Multisite compatible?

Loginpetze 1.x does not work on Multisite installations, but we intend to add Multisite support to a future version.

Why did you develop this plugin?

Occasionally (especially when setting up websites for clients) we wanted to be notified if – or when – anybody logged in to the staging websites. For this purpose we used to add some lines to our functions.php files, which was not very comfortable. For conveniance, we turned our code into this plugin.

It was also a good opportunity to learn and to completely play through the process of plugin creation.

What happens if I deactivate or delete the plugin via my Dashboard?

Deactivating the plugin will just stop the notification mails. Nothing will happen to your settings (which are stored in the database).

However, if you delete the plugin, this will remove your settings from the database. If you then re-install it, the default settings will be applied.

What happens if I just delete the files via FTP?

This will also stop the notification mails, but since the uninstall routine is not called, nothing will be removed from your database. If you re-install Loginpetze, your custom settings will still be available.

What happens if I or any other admin delete a user who is set up to receive the notification mails?

Loginpetze will warn you about this and you can check your settings. In case this warning is ignored, Loginpetze will automatically switch the recipient to the Standard Blog Admin.

I need more features. Is there a Pro Version available?

No 🙂

评价

Nice plugin. I recommend to everyone.

Dan Zakirov 2019 年 11 月 8 日
I liked this plugin, I will use it on two of my sites. Especially for you, I translated the plugin into Russian, I think our users will also need such a plugin and they can comfortably work with it. I recommend to everyone.
阅读所有0条评价

贡献者及开发者

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

贡献者
  • Christian Sabo
  • Kai

「Loginpetze」插件已被翻译至 9 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Loginpetze」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.4

  • 2020-08-06
  • Added: filter to suppress notifications for specific users, IDs or roles
  • Tested up to WordPress 5.5

1.3

  • 2020-01-14
  • Added: some more placeholders

1.2

  • 2018-10-08
  • Tested up to WordPress 5.3

1.1

  • 2018-01-16
  • Added: support for Simple History
  • Added: check for the required PHP version (5.5)
  • Improved: tags for the WordPress Plugin Directory

1.0

  • 2018-01-15
  • Initial release

额外信息

  • 版本 1.4
  • 最后更新:6 月前
  • 活跃安装数量 80+
  • WordPress 版本 4.7 或更高版本
  • 已测试的最高版本为 6.9.4
  • PHP 版本 5.5 或更高版本
  • 语言

    Croatian 、 Dutch 、 English (US) 、 French (France) 、 German 、 German (Austria) 、 German (Switzerland) 、 Japanese 、 Russian 和 Swedish.

    翻译成简体中文

  • 标签
    alertloginmonitornotificationstaging
  • 高级视图

评级

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

Your review

查看全部评论

贡献者

  • Christian Sabo
  • Kai

支持

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

查看支持论坛

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

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.