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

Linux底下查看Mysql版本

Linux底下查看Mysql...

在OS底下 [root@localhost ~]# mysql V 在Mysql底下 mysql> ...

錯誤訊息Division by zero的解決方式

錯誤訊息Division b...

錯誤訊息Division by zero發生的原因是因為除數是導致的錯誤: 解決方式如下: ) 運行...

PHP如何設定HTTP安全標頭?

PHP如何設定HTTP安全標...

PHP該如何將以下安全標頭添加到網站? XFrameOptions  防止點擊劫持攻擊 XXSSPr...

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