定制 stuttter/wp-user-activity 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stuttter/wp-user-activity

最新稳定版本:2.2.0

Composer 安装命令:

composer require stuttter/wp-user-activity

包简介

The best way to log activity in WordPress

README 文档

README

WP User Activity is the best way to log activity in WordPress. Activity can be sorted, filtered, and viewed per-user, along with session data for logged in users and IP addresses & user-agents for others.

Activity is broken down into object "Types" and "Actions." Types are the objects being acted upon, and actions are what is being done to them. If you're familiar with BuddyPress, this should feel pretty comfortable.

Available actions

  • Attachments (Upload, Edit, Delete)
  • Comments (Create, Pending, Approve, Unaprove, Trash, Untrash, Spam, Unspam, Delete)
  • Core (Update, Auto-update)
  • Exports (Download)
  • Menus (Create, Update, Delete)
  • Plugins (Install, Update, Activate, Deactivate, Edit, Delete)
  • Posts (Create, Update, Delete, Trash, Untrash, Spam, Unspam, Future)
  • Settings (Update)
  • Terms (Create, Update, Delete)
  • Themes (Customize, Install, Update, Activate, Edit, Delete)
  • Users (Login, Login Failure, Logout, Register, Update, Delete)
  • Widgets (Update, Delete)

Examples

Admin logged in 2 minutes ago.
Admin created the post "Hello World" 33 seconds ago.
Admin created the topic "I need help!" 5 days ago.

Installation

  • Download and install using the built in WordPress plugin installer.
  • Activate in the "Plugins" area of your admin by clicking the "Activate" link.
  • Consider sponsoring future development by clicking "Sponsor".
  • No further setup or configuration is necessary.

FAQ

Does this work with custom post types & taxonomies?

Yes. It will work perfectly with all post-types & taxonomies that define their own labels. Ones that don't are mocked using the post type ID.

Can I create custom activity types & actions?

Yes. The autoloader can be filtered, so adding new object types is as simple as:

add_filter( 'wp_get_default_user_activity_types', function( $types = array() ) {
	$types[] = 'Your_New_Type'; // extends `WP_User_Activity_Type`
	return $types;
} );

The WP_User_Activity_Type_Taxonomy is a good example to start with, if you'd like to create your own actions. It registers simple create/update/delete methods, with easy to understand messages & integrations.

Does this create new database tables?

No. It uses the WordPress custom post-type and metadata APIs.

Does this modify existing database tables?

No. All of the WordPress core database tables remain untouched.

Where can I get support?

Contributing

Please open a new issue to discuss whether the feature is a good fit for the project. Once you've decided to work on a pull request, please follow the WordPress Coding Standards.

统计信息

  • 总下载量: 501
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 43
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 42
  • Watchers: 2
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2015-09-23