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

Android Fragment及Activity 中使用sharedpreferences

Android Fragme...

在Android下想要儲存執行資料的方式有好幾種,例如存在手機空間或者是資料庫空間。 這裡紀錄一下使...

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

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

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

.htaccess 使用gzip壓縮網站加快加載速度並節省頻寬

.htaccess 使用gz...

modgziphttp://schroepl.net/pro...

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