Guest User
v2.0.0Palasthotel GmbH · 2022年4月25日 上架
Label users as guests: they can be credited as post authors, but cannot sign in.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,238
- 最近更新
- 2026年10月28日
需要 WordPress 5.0+已测试到 7.1.5PHP 8.0+
Guest authors, former staff or contributors who only send in their texts need a user account to appear as the author of a post – but they do not need to be able to sign in.
Guest User adds a checkbox “Is guest” to the user edit screen and to the “Add New User” screen. An account marked as guest
- cannot sign in with its password, neither at the login form nor through XML-RPC,
- is signed out of every session it still had open when it was marked,
- cannot use application passwords or any other way of authenticating against the REST API.
The account itself, its posts and its author archive stay as they are. Uncheck the box and the account can sign in again.
Developers can check an account with guest_user_is_guest( $user_id ).