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

使用CSS讓Youtube自動適應寬度跟高度

使用CSS讓Youtube自...

pexelsphotomedia 在播放Youtube影音的時候,常使用 iframe 的方式崁入網...

如何將mysql table auto_increment重設

如何將mysql table...

photo555 資料表裡的資料加加減減,一不小心突然驚覺當初的欄位長度設定的不夠⊙⊙ 當然,你可以...

php定時執行任務ignore_user_abort() 函式

php定時執行任務ignor...

ignoreuserabort() 函式 PHP , PHP 5, PHP 最近剛好有一個專案需要定...

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