[WordPress] 外掛分享: Stealth Publish

WordPress 外掛 Stealth Publish 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Stealth Publish」是 2010-09-08 上架。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2016-04-13,距離現在已有 3308 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.6 以上版本才可以安裝。
  • 有 11 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

coffee2code |

外掛標籤

feed | home | post | archive | feature |

內容簡介

此外掛能夠防止特定文章出現在首頁或任何 feeds 中,也可以阻止任何外部服務發送新文章時的通知。在想要即時發佈內容,但不希望轟動宣揚,並且僅將文章添加到儲存庫和分類頁面及其永久網址頁面時,這會非常有用。

在「編輯文章」後台頁面,新增了一個「隱密發佈?」的勾選框。勾選裡面的文章將不會再出現在首頁或 feeds 中。

隱密發表的文章也不會通知任何外部服務有新文章出現。這包括不發送 pingback、trackback,以及不更新像 pingomatic.com 這樣的服務。可以透過 “c2c_stealth_publish_silent” 過濾器(請參閱過濾器部分)覆寫此行為。

注意事項:
- 僅需使用 WordPress 標準的檢索文章函式(主要文章查詢和最近文章小工具),而非其他插件對資料庫進行查詢,即可避免隱密發佈文章出現在首頁。
- 如果使用這個插件,則不需要使用「Silent Publish」插件,因為這個功能已經包含在此插件中。或者,如果您喜歡靜默發佈的功能,但想讓新文章出現在您的博客首頁和 feeds中,那麼只需使用「Silent Publish」插件即可。
- 該插件會記錄文章隱密發佈的時間,在日後編輯文章時,該「隱密發佈?」的勾選框會預設勾選。

連結:插件首頁 | 插件目錄頁 | 作者首頁

過濾器:
這個插件還通過三個過濾器進行進一步的自定義。通常,這些自定義會放入您的活動主題的 functions.php 文件中,或由其他插件使用。

-c2c_stealth_publish_meta_key(過濾器)
-c2c_stealth_publish_silent(過濾器)

原文外掛簡介

This plugin allows you to prevent specified posts from being featured on the front page or in feeds, and from notifying external services of publication. Beneficial in instances where you want to publish new content without any fanfare and just want the post added to archive and category pages and its own permalink page.
A “Stealth publish?” checkbox is added to the “Write Post” admin page. Posts which are saved with that checkbox checked will no longer be featured on the front page of the blog, nor will the post be included in any feeds.
A stealth published post will also not notify any external services about the publication. This includes not sending out pingbacks, trackbacks, and pings to update services such as pingomatic.com. This behavior can be overridden via the ‘c2c_stealth_publish_silent’ filter (see Filters section).
NOTES:

Use of other plugins making their own queries against the database to find posts will possibly allow a post to appear on the front page. But use of the standard WordPress functions for retrieving posts (as done for the main posts query and the recent posts widget) should not allow stealth published posts to appear on the home page.

If you use this plugin, you do not need to use my Silent Publish plugin as that functionality is incorporated into this plugin. Alternatively, if you like the silent publishing feature but want your new posts to appear on your blog’s front page and in feeds, then just use the “Silent Publish” plugin.

The plugin records when a post is stealth published, so subsequent edits of the post will have the “Stealth publish?” checkbox checked by default.

Links: Plugin Homepage | Plugin Directory Page | Author Homepage
Filters
The plugin is further customizable via three filters. Typically, these customizations would be put into your active theme’s functions.php file, or used by another plugin.
c2c_stealth_publish_meta_key (filter)
The ‘c2c_stealth_publish_meta_key’ filter allows you to override the name of the custom field key used by the plugin to store a post’s stealth publish status. This isn’t a common need.
Arguments:

$custom_field_key (string): The custom field key to be used by the plugin. By default this is ‘_stealth-publish’.

Example:
/**
* Defines a custom meta key to be used by Stealth Publish.
*
* @param string $custom_field_key The default custom field key name.
* @return string
*/
function override_stealth_publish_key( $custom_field_key ) {
return '_my_custom_stealth-publish';
}
add_filter( 'c2c_stealth_publish_meta_key', 'override_stealth_publish_key' );

c2c_stealth_publish_silent (filter)
The ‘c2c_stealth_publish_silent’ filter allows you to override whether the plugin also ensure the post gets published silently (i.e. without sending out pingbacks, tracbacks, and pings to update services).
Arguments:

$publish_silently (bool): Should stealth published posts also be published silently? By default this is ‘true’.
$post_id (int): The ID of the post being published.

Example:
/**
* Disable silent publishing for stealth published posts.
*
* @param bool $publish_silently True if the post is to be published silently.
* @param int $post_id The post ID.
* @return Always false.
*/
function override_stealth_publish_silent( $publish_silently, $post_id ) {
return false;
}
add_filter( 'c2c_stealth_publish_silent', 'override_stealth_publish_silent' );

c2c_stealth_publish_default (filter)
The ‘c2c_stealth_publish_default’ filter allows you to override the default state of the ‘Stealth Publish?’ checkbox.
Arguments:

$state (boolean): The default state of the checkbox. By default this is false.
$post (WP_Post): The post currently being created/edited.

Example:
// Have the Stealth Publish? checkbox checked by default.
add_filter( 'c2c_stealth_publish_default', '__return_true' );

各版本下載點

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

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


1.0 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.0.1 | 2.0.2 | 2.2.1 | 2.5.1 | trunk |

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

  • oAuth Twitter Feed for Developers 》一個符合 Twitter API 1.1 規範的 WordPress 外掛,為主題開發人員提供從 Twitter 使用者時間線取得物件陣列的功能。, 新的 Twitter API 需要您進行 oAuth 認...。
  • RSS for Yandex Turbo 》此外掛可自動在您的網站上建立新的 RSS 訂閱 (或多個訂閱),以完全符合雅虎 "Turbo" 的 技術要求。, 安裝後請務必檢查在 "設定 / 雅虎 Turbo" 中的插件設置。...。
  • GN Publisher: Google News Compatible RSS Feeds 》GN Publisher 是一個能製作符合Google News RSS Feed 技術要求並包含您的網站在Google News Publisher Center的外掛。, 這個外掛解決了使用 Google News Publ...。
  • Super RSS Reader – Add attractive RSS Feed Widget 》Super RSS Reader 外掛允許您以優美的方式在 widget 中顯示 RSS 訂閱。它有選項可以在單個 widget 中顯示多個 RSS 訂閱,並具有添加類似新聞滾動條的功能。完...。
  • RSS Includes Pages 》此外掛會修改 RSS 訂閱,以便訂閱中包含頁面 (Page) 並非僅有文章 (Post)。停用此外掛,就會還原 RSS 訂閱至預設模式。, 當您將 WordPress 用作內容管理系統 ...。
  • RSSImport 》這款外掛可使用 PHP、小工具或短代碼在您的部落格中顯示 RSS 資訊。此外掛僅使用 WordPress 標準功能,因此不需要外部庫。對於較舊版本的 WordPress,使用內...。
  • FeedWordPress 》, 作者:C. Johnson, 項目網址:http://feedwordpress.radgeek.com/, 授權:遵循 GPL 2 進行授權。有關版權信息的詳細說明請參閱下文的授權。, , FeedWordPre...。
  • Easy Twitter Feed Widget Plugin 》Easy Twitter Feed Widget 外掛使用 Twitter Widget,不需建立 API 即可在 WordPress 網站上顯示推文,不需要建立 Twitter 應用程式。該外掛提供方便的介面,...。
  • WP Telegram Widget and Join Link 》p>使用簡單的短代碼,在 WordPress Widget 或任何地方顯示 Telegram 公開頻道或群組的動態線。, 卓越的支援, 參加聊天室, 我們在 Telegram 上設有一個公開小...。
  • Twitter Widget Pro 》這是一個小工具,能夠正確地處理 Twitter 資訊,包括將 @username、#hashtag 和網址解析成連結。它支援顯示個人資料照片,並且允許您控制是否顯示推文的時間...。
  • RSS for Yandex Zen 》這個外掛將自動在您的網站上創建符合 Yandex 的技術要求 的新 RSS Feed,提供給 Yandex Zen 服務使用。, 安裝外掛後,請務必檢查 “Yandex Zen 設置 ...。
  • Send Images to RSS 》Send Images to RSS 可以縮小您 RSS 資料中的圖片,以合適的尺寸呈現在 Email 上,讓更多人能夠在 Email 中看到您的內容。即使螢幕大小、螢幕呈現質量、圖片...。
  • Podcast Importer SecondLine 》使用 Podcast Importer SecondLine 外掛,自動同步播客 RSS 供稿到 WordPress 網站。此外掛容易將播客匯入 WordPress,可將播客匯入常規 WordPress 文章或自...。
  • Kebo Twitter Feed 》Kebo Twitter Feed 是一個方便且易用的外掛,讓您可以輕鬆地將 Twitter 資訊加入您的網站中。只需使用幾個點擊即可開始,無需設置自己的 Twitter App。使用提...。
  • Category Specific RSS feed Subscription 》這個 WordPress 外掛允許您為您的網站訪客提供多個 RSS 訂閱選項的菜單,除了您正常的 RSS 訂閱選項之外。, 如果您的網站涵蓋多個主題,那麼當您更新不是他們...。

文章
Filter
Apply Filters
Mastodon