[WordPress] 外掛分享: Contact Form 7 – Show Page

首頁外掛目錄 › Contact Form 7 – Show Page
70+
安裝啟用
★★★★★
5/5 分(3 則評價)
2661 天前
最後更新
問題解決
WordPress 4.5+ v1.0.3 上架:2017-06-21

內容簡介

儘管您並不需要這個外掛程式,但是當您需要快速檢查聯絡表單在哪些地方使用時,這個外掛程式可能就會派得上用場。如果您記憶力很好,您可能不需要這個外掛程式。但是,有時候您可能會忘記在哪些地方使用了聯絡表單,對吧?

以下是這個外掛程式會派上用場的情況:
1. 您在多個頁面和文章中使用了多個聯絡表單,或者在窗口小部件中使用了這些表單。若要編輯您想要的表單,您需要先找到它。這個外掛程式可以顯示帶有鏈接的文章/頁面名稱,以幫助您找到要編輯的表單。如果該表單用於窗口小部件中,它會告訴您當前表單是否用於該窗口小部件中。
2. 在某些情況下,這個外掛程式非常有用。假設您是開發人員,並在一個中有多個聯絡表單的網站中。您可能需要對其進行整理。此外掛程式可以幫助您查找和瞭解該聯絡表單是否被使用中,這樣您就可以遠離會意外刪除使用中表單的恐懼。

默認情況下,此外掛程式僅支援默認文章類型(文章/頁面)的搜索。但是,您可以使用類似以下快速過濾器鉤子的方法進一步擴展自己的自定義文章類型搜索:

function extend_posttype_support ( $support ) {
return array( 'book', 'movie' );
}
add_filter( 'wpcf7sp_support_posttypes', 'extend_posttype_support' );

使用方法

後端

1. 安裝了此外掛程式後,在每個聯絡表單編輯頁面下方會看到「CF7 顯示頁面」選單。
2. 無需設置,只需查看表單在哪裡使用。表格中會列出文章和頁面的名稱,並提供查看和編輯的鏈接。
3. 對於其他自定義文章類型,提供了篩選器。

1. 必須啟用聯絡表單 7。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Contact Form 7 – Show Page」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

You don’t need this plugin but hey, you might need this to quickly check where the contact forms are used. If you have good memory then you will good without it. But there is chance to forget it right?
So here below are the scenarios where you will find this plugin helpful:
1. You have multiple contact forms used in various pages and posts or may be used in widgets. To edit the one you like meaning find it first. This plugin will help you showing the post/page name with a link to view or edit that post or page. For the widget case, it will tell you whether the current form is used in the widget or not.
2. This is quite useful in this condition. Lets say you are a developer and you’ve come across the site where there are multiple contact forms. You might have to clean it up. This plugin will help you find and know if the contact form is used or not, meaning you are on your own far from the fear of mistakenly deleting the used one forms.
By default this plugin only supports the search in default post types (post/page). But you can extend the search in custom post types of your own further by using a quick filter hook like below:
function extend_posttype_support ( $support ) {
return array( 'book', 'movie' );
}
add_filter( 'wpcf7sp_support_posttypes', 'extend_posttype_support' );

Usages
Backend
1. After installing the plugin, you will find a CF7 Show pages menu under each contact form edit page.
2. No settings, just view where the form is used. It wil list the name of post, pages in the table with a link to view and edit.
3. For other custom post types, filter is provided.

Notes

1. Contact Form 7 must be activated.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon