rank_math/researches/toc_plugins for themes?

  • Resolved Niels

    How can we use the rank_math/researches/toc_plugin filter for a theme? We build custom themes for our clients with support for ToC, we would like to dismiss this notification in the SEO analyzes, but this filter expects a plugin and we implemented it by code on our theme. How do we tell Rank Math that our theme supports this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I noticed this filter, is this the way to go?

    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
        unset( $tests['content-readability']['contentHasTOC'] );
        return $tests;
    }, 10, 2 );


    Thank you for contacting Rank Math today.

    You can choose to use the filter below that allows you to add your ToC plugin to the Table of Content List.

     * Filter to add plugins to the TOC list.
     * @param array TOC plugins.
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['plugin-directory/plugin-filename.php'] = 'Plugin Name';
        return $toc_plugins;

    Let us know if you need further assistance with it. We are always here to assist.


    Hope You Doing Well.
    When I checked my site on top SEO Tools. then I got the Error of “Some Opengraph meta tags are missing” I am using the rank math on my site. I have Checked is to With SEO Analysis of rank math. Please check the below screenshot.

    http://prntscr.com/qw1byw (rankmath SEO Analysis)
    http://prntscr.com/qw1dzl (woorank)


    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘rank_math/researches/toc_plugins for themes?’ is closed to new replies.