[WordPress] 外掛分享: Secret Content

首頁外掛目錄 › Secret Content
WordPress 外掛 Secret Content 的封面圖片
200+
安裝啟用
★★★★★
5/5 分(1 則評價)
5130 天前
最後更新
問題解決
WordPress 2.8+ v1.0 上架:2012-02-29

內容簡介

只需勾選核取方塊 "僅向已登入的訪客顯示此項目",該功能是基於單篇文章 / 單頁面的方式工作,目前尚未支援自訂文章類型。

您不需要插入自定義功能或短碼,也不需更改主題模板檔案。
此外掛透過篩選 WordPress 核心功能來運作。

如果您 "隱藏" 一個父頁面,子頁面在選單中也會被隱藏。

從技術上來說,此外掛會修改標準 WordPress 功能的查詢或數據庫呼叫的結果,如 wp_get_nav、wp_list_pages、$posts、previous_post 和 next_post。
當勾選核取方塊時,此外掛會在 postmeta 資料庫表格中儲存鍵 / 值對。
當移除此外掛時,postmeta 表格中的項目會被刪除。

歡迎提供意見、問題和反饋。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Secret Content」→ 直接安裝(推薦)

原文外掛簡介

Simply tick the checkbox “Show this to logged in visitors only” This works on a per post / per page basis. Not yet enabeled for custom post types.
You do not need to insert custom functions or shortcodes. You do not need to change theme template files.
This plugin works by filtering WordPress core functions.
If you “hide” a parent page, the children will be hidden in the menu as well.
Technically the filters are modifying the query or the result of databse calls on standard WP features: wp_get_nav, wp_list_pages, $posts, previous_post, next_post.
When ticking the checkbox, the plugin saves a key/value pair in the postmeta database table.
When uninstalling the plugin, the entrys to the postmeta table are deleted.
Suggestions, Questions and feedback are welcome.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon