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
| Type | Name | Description |
|---|---|---|
string | $raw_toc | Raw marker from Markdown, e.g. “[kbtoc]”. |
bool | $block_editor | Whether in block editor mode. |
Usage
add_filter( 'wzkb_github_import_toc_pre', function($raw_toc, $block_editor) {
// ...
return $raw_toc;
} );