Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
You can make use of the following filter to add this plugin to the TOC 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;
});
I hope this info helps. Thank you.
βββββββ
Should I edit the “rank-math.php” file?
Hi there,
Thanks for the question.
No this code should go to your theme’s functions.php file.
I hope this info helps. Thank you.
Hi,
I have add this code to my theme’s functions.php file. However it doesn’t work.
Hi there,
Thanks for the follow up.
You need to customize the name of the main plugin file and the folder where the plugin is located as shown 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['plugins/luckywp-table-of-contents.php'] = 'LuckyWP Table of Contents';
return $toc_plugins;
});
I hope this info helps. Thank you.
Hello,
I have used the code you provided, but it doesnβt work, too. I not sure where is the problem.
Hi there,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi there,
Thanks for the follow up.
I have modified your code to the following:
/**
* Filter to add plugins to the TOC list.
*
* @param array TOC plugins.
*/
add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
$toc_plugins['luckywp-table-of-contents/luckywp-table-of-contents.php'] = 'LuckyWP Table of Contents';
return $toc_plugins;
});
I hope this info helps. Thank you.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.