這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Better Author Metabox

外掛說明

This plugin can override the Authors metabox on the post add/edit screen, letting users who can edit other people’s posts, reassign a post to others user on the site.

This is especially useful in situations where you’ve created custom user roles that WordPress doesn’t recognize as Authors. If you want to allow your content editors and administrators to assign new or existing content to anyone, you’ll (hopefully) like this plugin very much indeed.

On WordPress 5.0, the metabox will appear below the main block editor (see screenshot). I will be supporting updates to the Status & Visibility box as soon as possible.

I’m not sure how far back this plugin will work, I’m saying it requires 3.5 or greater — it was originally developed using WordPress 4.1.

(Inspired by this trac ticket)

螢幕擷圖

安裝方式

  1. Upload the better-author-metabox folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Visit Settings > Better Author Metabox to choose the post types where the expanded Author metabox should be made available, and users who should be included.

常見問題集

I don’t see any difference. What gives?

There are at least three reasons:

  1. To see the better metabox, the logged-in user must have the edit_others_posts capability. If you can’t edit other people’s posts, you shouldn’t be able to change a post’s author, right?

  2. You need to choose the post types where the plugin should be enabled. None are enabled by default. If a post type hasn’t been enabled, it will use the default metabox.

  3. If you’ve enabled a post type to use the better metabox, but still only see authors, select additional user roles to make sure they’re included in the dropdown. This is especially useful for custom roles you’ve created.

Can I exclude certain users without using roles?

This plugin doesn’t support that directly, but there is a filter (bam_wp_dropdown_users) that works just like the core wp_dropdown_users filter to let you edit its HTML before output.

使用者評論

2016 年 9 月 3 日
The plugin is very useful. Thank you. In my case, i have a lot of members to set author for new posts, it’s very difficult to select exactly author. Could you make some functions in future: – Option to show user id with user name (in dropdown box) – Option to show small avatar per each user (eg 16×16 pixels, round style) – Option to sort User by Name, Id. – So far we can have a glossary index by alphabet first’s letter for username in dropdown list. Thank you so much.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Better Author Metabox〉的開發相關工作。

參與者

將〈Better Author Metabox〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial version.

1.0.1

  • Fixed issue with multiple roles not being correctly merged (hat tip: WPSeeker), and a couple small issues with settings.

1.0.2

  • Fixed issues in PHP strict mode (hit tip: Clifford Paulick), and other spots where notices and warnings might appear.

1.0.3

  • Tested with WordPress 5.0’s Gutenberg block editor, updated documentation.

1.0.4

  • Code style fixes, tested on WordPress 5.1.

1.0.5

  • Tested on WordPress 5.3.