WP Manifestindependent plugin directory
manifest / editor / blockparty-table-of-content

Blockparty Table of content

This plugin adds a block to the WordPress block editor that allows you to add a table of content to your posts and pages.

by Be API Technical team · github.com/beapi/blockparty-table-of-content

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/beapi/blockparty-table-of-content/archive/refs/heads/develop.zip

Readme

Table of content block for WordPress

This plugin adds a block to the WordPress block editor that allows you to add a table of content to your posts and pages.

For developers

Allow more blocks to be included in the Table of content

By default, the Paragraph block get a custom setting to be included in the Table of content (Advanced > Table of content). Use the toc_third_blocks_included filter to allow more blocks :

add_filter( 'toc_third_blocks_included', 'custom_toc_third_blocks_included', 10, 1 );
function custom_toc_third_blocks_included( $blocks ) {
    $blocks[] = 'core/button';
    return $blocks;
}

Read the full README on GitHub →