Recent

wzkb_get_tocfunction

wzkb_get_toc()

Get the table of contents for a knowledge base article.

Since: 3.0.0
Source: includes/functions.php line 209

Signature

function wzkb_get_toc( $content = ..., $args = ... ): string;

Parameters

Type Name Description
string $content Post content to parse. Defaults to current post content.
array $args Optional arguments. See TOC::process_content() for accepted keys.

Returns

string — TOC HTML, or empty string if not enough headings were found.