# betterdocs/4.9.3/views/admin/metabox/estimated-reading-box.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.3. 16 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/admin/metabox/estimated-reading-box.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/views/admin/metabox/estimated-reading-box.php
- Modified: 2026-06-23T11:52:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/admin/metabox/estimated-reading-box.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.
	
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
$post_id          = get_the_ID();
	$est_reading_text = ! empty( get_post_meta( $post_id, '_betterdocs_est_reading_text', true ) ) ? get_post_meta( $post_id, '_betterdocs_est_reading_text', true ) : '';
?>
<div class="est-reading-box-wrapper">
	<p>You can add estimated reading time to this documentation so visitors can know how much time they need to read this.</p>
	<div class="est-reading-box-outer-wrapper">
		<input name="estimated_reading_text" class="ert-text-field-class" value="<?php echo esc_attr( $est_reading_text ); ?>" placeholder="<?php echo esc_html__( 'Add Reading Time:⌛ Min', 'betterdocs' ); ?>"/>
	</div>
</div>

```
