Recent

wzkb_get_toc function

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

TypeNameDescription
string$contentPost content to parse. Defaults to current post content.
array$argsOptional arguments. See TOC::process_content() for accepted keys.

Returns

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