• radiationvscancer

    (@radiationvscancer)


    As I am using Rank Math and it requires adding a filter to the theme so that Rich Table of Contents can be one of the default pugins for SEO optimization. Is it feasible to do so?

    The filter is stated below

    /**
     * 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;
    });

    The filter is stated in the website
    https://rankmath.com/kb/score-100-in-tests/
    https://rankmath.com/kb/filters-hooks-api-developer/#add-toc-plugin

    Please let’s me know if doing the above procedures is feasible or not so that Rank Math could record Rich Table of Contents as one of the default pugins. Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Croover.inc

    (@ryota0101)

    @radiationvscancer

    Hi,

    Thanks for sharing the code.
    We have been receiving inquiries about Rank Math SEO for some time now and are considering addressing them as soon as possible.

    It is on our list for the next upgrade, so we hope you can wait a while now.

    Best Regards,
    Ryota

Viewing 1 replies (of 1 total)
  • The topic ‘Add filter to Rank Math’ is closed to new replies.