webberzone.dev Recent

wzkb_github_import_toc_pre filter Pro only

wzkb_github_import_toc_pre

Filter the raw TOC shortcode string before conversion.

Return a complete block comment or shortcode to bypass our conversion entirely.

Type: filter
Since: 3.1.0
Source: includes/github/class-content-importer.php line 184

Parameters

TypeNameDescription
string$raw_tocRaw marker from Markdown, e.g. “[kbtoc]”.
bool$block_editorWhether in block editor mode.

Usage

add_filter( 'wzkb_github_import_toc_pre', function($raw_toc, $block_editor) {
    // ...
    return $raw_toc;
} );