[WordPress] 外掛分享: Prepare New Version

WordPress 外掛 Prepare New Version 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Prepare New Version」是 2013-09-24 上架。
  • 目前有 7000 個安裝啟用數。
  • 上一次更新是 2014-09-09,距離現在已有 3889 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 6 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

globalis |

外掛標籤

copy | clone | editing | duplication | replacement |

內容簡介

有時候,幸福就是一些小事。你能夠在原始內容還在線上時,準備新版本內容如何呢?

預先準備一個已經在線上的文章的下一個版本,可以很快變成一個繁瑣且有風險的任務。事實上,大多數的出版商會創建一個全新的文章,填寫內容,當準備好後發佈,最後禁用原始文章。

基本功能:

一鍵創建文章的新版本;
直接訪問文章的其他待處理版本;
單擊更新文章到其新版本。

進階功能:

將文章複製成全新的獨立副本;
可掛接 😉
適用於任何文章類型,自定義或非自定義
自動煮咖啡(我們還在努力)

關於
掛鉤

pnv_duplicata_status_args
可用於更改發送到 ‘register_post_status’ 的引數的過濾器。
默認引數如下:

label =>副本

public => false

exclude_from_search => true

show_in_admin_all_list => false

label_count =>

單數 =>副本(%s)

複數 =>副本(%s)

pnv_erase_content_destination
可在觸發複製、複制或替換時更改 $destination 陣列之前,用於更改 $destination 陣列的過濾器 ‘wp_insert_post’
此過濾器發送另外三個參數:$source 對象(WP_Post 實例)和 $copy 布林值

pnv_filtered_metas
可在複製、複製或替換文章時更改不必處理的元名的過濾器
預設的 metas 是一個包含以下值的陣列:

_pnv_duplicata => true

pnv_erase_content
複製、複製或替換結束時觸發的操作。
此操作發送四個參數:

$source 對像(WP_Post 實例)

$destination 陣列(代表文章數據)

$copy 布林值

目標的文章 ID

pnv_action_url_redirect
可用於在複製、複製或替換之後更改重定向 URL 的過濾器。
預設值是目標文章的管理編輯頁面(已保存的文章)
此過濾器發送另外一個參數:目標文章 ID
pnv_column_name_column_value
可用於更改文章列表中 ‘{column_name}’ 列中顯示的值的過濾器。
此插件目前只帶有一個自定義列,‘duplicata’,因此 {column_name} 將始終是 ‘duplicata’,默認值將是文章的副本數。
此過濾器發送另外一個參數:文章 ID

感謝

該插件的原始版本是由 Lionel POINTET(https://github.com/lpointet)開發的,他仍在經常關注該項目。

非常感謝Groupe Moniteur,該開發的絕大部分目的是開發一個完全開源的插件。感謝未分類創作

原文外掛簡介

Sometimes happiness is about small things. What about being able to prepare a new version of your content while its original is still online?
Anticipating and preparing the next version of an article which is already online can quickly become a tedious and risky task. Indeed, most publishers will create a brand new post, fill it in, publish it once it’s ready and finally disable the original article.
Basic features:

creation of a new version of an article in 1 click;
direct access to other pending versions of an article;
update of an article to its new version in 1 click.

Advanced features:

duplication of an article into a brand new independent copy;
hookable 😉
works with any post types, custom or not
makes coffee (we’re still working on that)

About
Hooks
pnv_duplicata_status_args
Filter that can be used to alter arguments sent to ‘register_post_status’.
Default arguments are:

label => Duplicate

public => false

exclude_from_search => true

show_in_admin_all_list => false

label_count =>

singular => Duplicate (%s)

plural => Duplicates (%s)

pnv_erase_content_destination
Filter that can be used to alter $destination array before ‘wp_insert_post’ get called when a copy, duplication or replacement is triggered
This filter sends 3 other parameters: the $source object (WP_Post instance) and the $copy boolean
pnv_filtered_metas
Filter that can be used to alter meta names that must not be treated while a post is copied, duplicated or replaced
The default metas is an array with these values:

_pnv_duplicata => true

pnv_erase_content
Action triggered at the end of a copy, duplication or replacement.
This action sends 4 parameters:

the $source object (WP_Post instance)

the $destination array (represents post data)

the $copy boolean

the destination’s post ID

pnv_action_url_redirect
Filter that can be used to alter redirect URL after a copy, duplication or replacement.
The default value is the admin edit page for the destination post (the one that has been saved)
This filter sends 1 other parameter: the destination post ID
pnv_{column_name}_column_value
Filter that can be used to alter the value displayed on the posts list, in the ‘{column_name}’ column.
This plugin comes with only one custom column for now, ‘duplicata’, so {column_name} will always be ‘duplicata’, and the default value will be the count of duplicates for the post.
This filter sends 1 other parameter: the post ID
Thank’s
The original version of this plugin has been developed by Lionel POINTET (https://github.com/lpointet) who keeps following the project carefully.
A big thank-you to Groupe Moniteur for which a great part of this development was intended and which accepted enthusiastically to do a completely open source plugin from it. Thank you to Uncategorized Creations people, for their regular advice and their perseverance in making WordPress a leading CMS.
GLOBALIS
GLOBALIS is a web IT consulting company based in Paris, and a pioneer of the PHP and LAMP platform. Since 1997, we have been designing, making and maintaining Internet, intranet or mobile software. We have been working with open source CMS since 2000 and have regularly been using WordPress since 2007.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Prepare New Version」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.9 | 0.9.1 | 0.9.2 |

延伸相關外掛(你可能也想知道)

  • Proofreading 》這個校對外掛讓您能夠提升文章、頁面和整個 WordPress 網站的質量。, 它能讓您在不到一秒的時間內,檢查文章、頁面和草稿內的文字更正!, 按下“分析”按鈕,就...。
  • FD Footnotes Plugin 》截至2016年5月,此外掛已不再維護,並不會收到任何未來的更新。, 如果您想在這裡列出替代方案,請聯繫我。, 替代方案:, - https://wordpress.org/plugins/fo...。
  • Save and Close 》完全符合插件名稱的設計!, 這個外掛是什麼呢?從名稱上就可以看出來,它只是在所有頁面、文章和自訂文章類型中新增「儲存並關閉」按鈕。我們不再需要點擊了...。
  • FD Word Statistics Plugin 》截至 2016 年 5 月,此外掛已不再更新,未來也不會再更新。, 如您希望在此列出替代方案,請與我聯繫。, 在編輯文章時,顯示該文章的單詞和句子統計以及閱讀易...。
  • Custom Access Roles 》2.0.0版新增功能:使用自訂角色的使用者現在只會看到分配給他們的文章或頁面。我們還精簡了管理介面,讓配置更輕鬆,同時新增了額外的說明,以協助您將正確的...。
  • Clone & Replace 》WordPress 具有出色的編輯模型,其中包含了「草稿工作流程(draft workflow)」,作家可以保存未發布的草稿、預覽文章、向上級提交草稿進行審查,甚至可以安排...。
  • Advanced Settings 3 》這是一個非常重要的 WordPress 外掛。, 新增功能, , 新增管理頁面:Scripts, 新增管理頁面:Styles, 從

文章
Filter
Apply Filters
Mastodon