
內容簡介
Fattami Reading Time 外掛為您的文章添加一個優雅的「閱讀時間」標籤,讓訪客在開始閱讀前了解所需的時間。此外掛使用 Unicode 認識的計算方式,能準確計算多種語言的字數。
【主要功能】
• 自動在選擇的文章類型前或後顯示標籤
• 可調整的閱讀速度(每分鐘字數)
• 自訂標籤或不顯示標籤
• 可選的字數顯示在閱讀時間旁邊
• 支援 [fattami_reading_time] 短碼,隨意放置標籤
• 輕量級,僅在顯示標籤的頁面載入樣式表
外掛標籤
開發者團隊
原文外掛簡介
Fattami Reading Time adds a small, elegant “Reading time: 4 minutes” badge to your posts so visitors know what to expect before they start reading.
Most reading time plugins rely on PHP’s str_word_count(), which only understands ASCII letters and therefore undercounts French accented words, and completely ignores Arabic, Cyrillic, Chinese, Japanese or Korean text. Fattami Reading Time uses Unicode-aware counting instead:
Latin, Cyrillic, Arabic, Hebrew and similar scripts are counted word by word (accents and apostrophes included).
Chinese, Japanese and Korean characters are counted individually.
Shortcodes, HTML tags, scripts and styles are stripped before counting.
Features
Automatic badge before or after the content of the post types you choose.
Adjustable reading speed (words per minute).
Custom label, or no label at all.
Optional word count next to the reading time.
[fattami_reading_time] shortcode to place the badge anywhere (supports id and label attributes).
Lightweight: one small stylesheet, loaded only on pages where a badge is displayed. No JavaScript, no external requests.
Translation ready and compatible with block themes and classic themes.
Removes its own settings when uninstalled.
Developer hooks
fattami_reading_time_word_count – filter the word count of a post.
fattami_reading_time_badge_html – filter the final badge markup.
