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

Font Awesome Icon Sizes

Font Awesome I...

pexelsphotoicon5 紀錄一下Font Awesome icon尺寸設定 faxs fa...

php使用PDO獲取結果的方法

php使用PDO獲取結果的方...

fetch() 式例如下: mixed PDOStatement::fetch([int fetch...

mysql 查詢數據資料是否有重複

mysql 查詢數據資料是否...

pexelsphoto5 有沒有試過資料庫裡上萬筆資料卻不知道是不是有重複的數據? 這時你一定要試試...

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