Loading...

WordPress如何關閉迴響留言功能?

Temperature: 0 °C

Mark ChangMark Chang
author_tools

其實WordPress本身的留言迴響功能還蠻健全的。

包括可以設定關鍵字黑名單或者是IP黑名單,強制讓進入黑名單的留言內容進入後台審核。

而且也可以在撰寫一篇文章時選擇這篇文章是否要關閉留言迴響。

但偶而還是會遇到就是不想要留言版的客戶~例如公家機關?( ̄∇ ̄)

索性就直接從code裡把留言功能移除。

步驟1選定一個佈景主題。

步驟2修改主題內的single.php 或 content.php 或 page.php 檔案,位置會在wp-content/themes/佈景主題資料夾內。

//尋找以下程式碼並且把它註解掉
comments_template();
//comments_template();

這樣就一勞永逸~

但站在經營Blog的角度,還是建議讓功能留下來~

以上紀錄。

WordPress如何關閉迴響留言功能?

 

https://innstory.com/story-WordPress如何關閉迴響留言功能-2096
WORDPRESS

Prev
 php定時執行任務ignoreuserabort_函式

Next
Weak_SSL_Cipher在Apache中禁用過時的SSL__TLS版本 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

CSSobject-fit 屬性用於指定應如何調整 img或video的大小以適合其容器

CSSobject-fit ...

在UI排版時常會遇到一個問題,後台上傳的圖片比例無法符合前台顯示的DIV容器。 以前我比較常用的方式...

PDO bindParam 和 bindValue 差別在哪裡?

PDO bindParam ...

首先 bindParam 是綁定變數、bindValue  是綁定值。 以下範例: bindPara...

文件上傳過程中使用白名單、黑名單、或者MIME做認證

文件上傳過程中使用白名單、黑...

pexelsphotolock5 是不是被資安的問題搞得很煩? 我想,在建置系統的過程中,或多或少都...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format