Recent

wzkb_toc_block_args filter Pro only

wzkb_toc_block_args

Filters arguments passed to TOC::process_content for the block.

Type: filter
Since: 3.0.0
Source: includes/blocks/class-blocks.php line 247

Parameters

TypeNameDescription
array$toc_argsTOC arguments.
array$attributesBlock attributes.
\WP_Post$postCurrent post.

Usage

add_filter( 'wzkb_toc_block_args', function($toc_args, $attributes, $post) {
    // ...
    return $toc_args;
} );