Recent

wzkb_toc_block_argsfilterPro only

wzkb_toc_block_args

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

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

Parameters

Type Name Description
array $toc_args TOC arguments.
array $attributes Block attributes.
\WP_Post $post Current post.

Usage

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