Linux 软件免费装
Banner图

Readlyte - Reading Time

开发者 munizasultan
更新时间 2026年9月11日 04:07
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

content blog gutenberg reading time read time

下载

1.0.0

详情介绍:

Readlyte estimates how long it will take a visitor to read a post, based on its word count and a configurable words-per-minute rate, and displays it as a small badge. Features

安装:

  1. Upload the readlyte-reading-time folder to /wp-content/plugins/.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to Settings → Readlyte to configure words-per-minute, display text, position, and enabled post types.

常见问题:

Can I place the read time somewhere specific in my template?

Yes. Set "Display mode" to "Shortcode / block only" in Settings → Readlyte, then use the [rdlt_reading_time] shortcode or the "Reading Time (Readlyte)" block wherever you like, or call RDLT_Display::instance()->render_badge( $post_id ) directly in a theme template.

Does it work with Gutenberg and the Classic Editor?

Yes. The shortcode works with both. The block requires the block editor (Gutenberg / WordPress 5.8+).

How is word count calculated?

HTML tags, shortcodes, and block-editor comments are stripped before counting whitespace-separated words in the visible text.

Can I change the icon shown next to the read time?

Yes, with the rdlt_read_time_icon filter. Return your own HTML (inline SVG, a <i> icon-font tag, or an <img>), or return an empty string to remove the icon entirely. // Swap in a Font Awesome icon. add_filter( 'rdlt_read_time_icon', function( $icon, $post_id ) { return ''; }, 10, 2 ); // Remove the icon. add_filter( 'rdlt_read_time_icon', '__return_empty_string' ); The icon is sanitized with wp_kses (svg/path/circle/i/span/img only), so only presentational markup gets through.

更新日志:

1.0.0