automattic/co-authors-plus
Composer 安装命令:
composer require automattic/co-authors-plus
包简介
Multiple bylines and Guest Authors for WordPress
README 文档
README
Stable tag: 4.1.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: authors, users, multiple authors, co-authors, multi-author
Contributors: batmoo, danielbachhuber, automattic, GaryJ
Assign multiple bylines to posts, pages, and custom post types with a search-as-you-type input box.
Description
Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box. Co-authored posts appear on a co-author's archive page and in their feed. Co-authors may edit the posts they are associated with, and co-authors who are contributors may only edit posts if they have not been published (as is core behavior).
Add writers as bylines without creating WordPress user accounts. Simply create a guest author profile for the writer and assign the byline as you normally would.
On the frontend, use the Co-Authors Plus template tags or the block editor blocks to list co-authors anywhere you'd normally list the author.
Documentation
- Usage — themer and site-owner guides live on the GitHub Wiki: template tags, blocks, guest author management, and multisite.
- Developer reference — lives in-repo under
docs/(not bundled in the distribution ZIP):
Co-Authors Plus is an almost complete rewrite of the Co-Authors plugin originally developed by Weston Ruter (2007). The original plugin was inspired by the 'Multiple Authors' plugin by Mark Jaquith (2005).
Installation
- IMPORTANT: If you are using the original Co-Authors plugin, disable it before installing Co-Authors Plus.
- Extract the co-authors-plus.zip file and upload its contents to the
/wp-content/plugins/directory. Alternately, you can install directly from the Plugin directory within your WordPress Install. - Activate the plugin through the "Plugins" menu in WordPress.
- Place co-authors template tags in your template.
- Add co-authors to your posts and pages.
Screenshots
- Multiple authors can be added to a Post, Page, or Custom Post Type using an auto-complete interface.
- Guest authors allow you to assign bylines without creating WordPress user accounts. You can also override existing WordPress account meta by mapping a guest author to a WordPress user.
Frequently Asked Questions
How do I add Co-Authors Plus support to my theme?
If you've just installed Co-Authors Plus, you might notice that the bylines are being added in the backend but aren't appearing on the front end. You'll need to add the template tags to your theme before the bylines will appear.
What happens to posts and pages when I delete a user assigned to a post or page as a co-author?
When a user is deleted from WordPress, they will be removed from all posts for which they are co-authors. If you reassign their posts to another user, that user will be the co-author instead.
Can I use Co-Authors Plus with WordPress multisite?
Yes! You can use Co-Authors Plus on WordPress multisite. Co-Authors Plus can be activated on a site-by-site basis or network-activated. If you create guest authors, however, those guest authors will exist on a site-by-site basis.
Who needs permission to do what?
A WordPress user will need the edit_others_posts capability to assign co-authors to posts. This is typically granted to the Editor role but can be altered with the coauthors_plus_edit_authors filter.
A WordPress user will need the list_users capability to create new guest author profiles. This is typically granted to the Administrator role but can be altered with the coauthors_guest_author_manage_cap filter.
Can I easily create a list of all co-authors?
Yes! You can create a list of all co-authors with a template tag coauthors_wp_list_authors() template tag. This template tag accepts many of the same arguments as wp_list_authors(). Look in template-tags.php for more details.
Can I disable Guest Authors?
Yes! You can disable guest authors entirely through a filter. Having the following line load on init will do the trick:
add_filter( 'coauthors_guest_authors_enabled', '__return_false' )
Change Log
automattic/co-authors-plus 适用场景与选型建议
automattic/co-authors-plus 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24.99k 次下载、GitHub Stars 达 317, 最近一次更新时间为 2023 年 07 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 automattic/co-authors-plus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 automattic/co-authors-plus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 24.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 317
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-07-24