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

WP Revised Status

描述

Sometimes it would be useful to track changes in publishing status throughout time, but native WP revisions will always inherit the parent’s publishing status.

This plugin enables saving the post status (‘published’, ‘draft’, ‘pending’, etc) with each revision, so you can track publishing status where you have many users and accountability is desirable.

Available Hooks

wp-revised-status_tracked-posttypes

You can use this to set up posttypes to track without using the options page. Your function should return an associative array.

E.g.:

 add_filter( 'wp-revised-status_tracked-posttypes', function( $enabled ) {
 $enabled['post'] = 1;
 $enabled['page'] = 1;

 return $enabled;
 }


wp-revised-status_untracked-posttypes

Exactly the inverse of the previous hook. ** What you disable on this hook takes precedence to what you enable in the tracked_posttypes one.

E.g.:

function my_plugin_no_history( $disabled ) {
    $disabled['page'] = 1;

    return $disabled;
}
add_filter( 'wp-revised-status_untracked-posttypes', 'my_plugin_no_history' );


wp-status-revised_disable-options

If you are using the plugin inside a theme or another plugin, and want to disable the options page, you can just do:

add_filter( 'wp-status-revised_disable-options', '__return_true' )

Github

Github repository at plugin at https://github.com/yivi/wp-revised-status

螢幕截圖

  • The new revision status metabox
  • Options page to enable publishing status history for registered post types.

安裝

  1. Unzip plugin’s files in a folder inside /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題

Where is published information saved?

An entry will be created on your post_meta for each revision, that will be deleted whenever a revision is deleted.

Are custom post types supported?

Any post type properly registered is supported. You need to enable support for any post type either through the settings page or using the appropriate filters.

Are custom post statuses supported?

Any custom post type registered should work… but let me know if it doesn’t. 🙂

Does this work with PHP < 5.3?

No, sorry. PHP5.3 at a minimum, but at least 5.4 is recommended.

評價

There are no reviews for this plugin.

貢獻者及開發者

“WP Revised Status” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Revised Status 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.8.1

  • Inline documentation in settings page
  • Show which settings have been set via filter hooks, and disable the gui for those.

0.7.0

  • Minor refactoring of main plugin classes

0.6.2

  • Minor packaging fixes

0.6

  • Initial public release