
內容簡介
這是一個簡單的外掛程式,它會顯示文章的總閱讀時間。它會按每分鐘 200 個字來計算文章的總閱讀時間。
這是一個完全開源的專案。這是Github 連結
它是如何運作的:
只需安裝外掛程式,總閱讀時間就會顯示在內容的底部。
後台的設定頁面有一個設定,可以設定你平均每分鐘的閱讀時間。
儀表板> 設定 > 總閱讀時間
篩選器清單
更改標題:
add_filter("trtwp_label_of_title","your-function-name");
更改每分鐘的字數(目前每分鐘為 200 個字):
add_filter("trtwp_word_per_min","your-function-name");
其他篩選器
/* 更改單位為“分鐘”
add_filter("trtwp_label_of_minutes","your-function-name");
/* 更改單位為“秒”
add_filter("trtwp_label_of_seconds","your-function-name");
/* 更改標記標籤。預設為“p”
add_filter("trtwp_label_of_seconds","your-function-name");
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
It is a simple plugin which will show the total reading time of a post.It will calculate the total reading time of a post in the measure of 200 words per minutes.
It is a totally open source project.Here is the Github link
How It works:
Just install the plugin the total reading time will be shown at the bottom of the content.
There is a setting page in the admin dashboard to set your avvarage reading time per minute.
dashboard> Settings > Total reading time
Filter lists
Change the title:
add_filter("trtwp_label_of_title","your-function-name");
Change the word count per minute base value(currently it is 200 words per minutes):
add_filter("trtwp_word_per_min","your-function-name");
Other filters
/*Change the word "Minutes"
add_filter("trtwp_label_of_minutes","your-function-name");
/*Change the word "Seconds"
add_filter("trtwp_label_of_seconds","your-function-name");
/*Change the markup tag.default is "p"
add_filter("trtwp_label_of_seconds","your-function-name");
