# betterdocs/4.9.3/views/templates/parts/content.php

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

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/templates/parts/content.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/views/templates/parts/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.3/code/views/templates/parts/content.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.


if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
// 'the_content' is a WP-core filter; using its documented name is required.
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
$content = apply_filters( 'the_content', get_the_content() );

$_htags = $_enable_toc = null;

if ( isset( $htags ) ) {
	$_htags = $htags;
}
if ( isset( $enable_toc ) ) {
	$_enable_toc = $enable_toc;
}

echo betterdocs()->template_helper->content( $content, $_htags, $_enable_toc ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

```
