| 开发者 | ayoubfattami |
|---|---|
| 更新时间 | 2026年9月12日 18:30 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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:
[fattami_reading_time] shortcode to place the badge anywhere (supports id and label attributes).fattami_reading_time_word_count – filter the word count of a post.fattami_reading_time_badge_html – filter the final badge markup.fattami-reading-time folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.The plugin counts the words of the post content (after removing HTML and shortcodes) and divides the result by the reading speed set in the options (200 words per minute by default). The result is rounded up, with a minimum of 1 minute.
Yes. Set the position to "Do not insert automatically" and use the [fattami_reading_time] shortcode wherever you like, for example in a template or a Shortcode block. You can target another post with [fattami_reading_time id="123"] and change the text with [fattami_reading_time label="Read in:"].
Yes. The word counting is Unicode-aware and handles accented characters, Arabic, Cyrillic and CJK scripts. All strings displayed by the plugin are translatable.
No. The count is done in PHP when the page is rendered, no database table is created and the stylesheet is only loaded when a badge is actually displayed.