# betterdocs/4.9.2/views/widgets/content.php

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

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.2/code/views/widgets/content.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.2/raw/views/widgets/content.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.2/code/views/widgets/content.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
if ( ! is_singular( 'docs' ) ) {
	return;
}
?>

<div
	<?php echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
	<?php
	if ( isset( $widget_type ) && $widget_type != 'blocks' ) {
		betterdocs()->views->get(
			'templates/parts/print-icon',
			[
				'enable' => (bool) $enable
			]
		);
	}

		// The Content For A Docs
		$view_object->get(
			'templates/parts/content',
			[
				'htags'      => $htags,
				'enable_toc' => $enable_toc
			]
		);
		?>
</div>

```
