joli_toc_title_depth

Lets you control headings processing depth.

The output string must be composed of heading tags separated by a coma and with no space.

add_filter('joli_toc_title_depth', function($depth){ 
    return 'h2,h3';
});
Was this page helpful?