• Resolved KoolPal

    (@koolpal007)


    Hi,

    I have just started using Rank Math Version 1.0.228 and was thinking of using these overrides in rank-math.php

    add_filter( ‘rank_math/frontend/remove_credit_notice’, ‘__return_true’ );
    add_action( ‘rank_math/whitelabel’, ‘__return_true’ );
    add_filter( ‘rank_math/sitemap/remove_credit’, ‘__return_true’ );
    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);

    However, a quick check in page view source showed no impact if I use them or not.

    Query 1: Can you please guide if all the codes given in https://rankmath.com/kb/filters-hooks-api-developer/ are up to date and relevant for Version 1.0.228

    I wouldn’t want to apply unwanted codes if they are not useful.

    Query2: Similarly, I came across <script type=”application/ld+json” class=”rank-math-schema”> this class whose significance is not clear.

    Please guide on BOTH queries.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @koolpal007,

    Thank you for contacting support.

    1. Yes, all filters are up to date and work with the latest version of the plugin. You just need to be sure you are adding them with one of the options here:?https://rankmath.com/kb/wordpress-hooks-actions-filters/
    2. This script tag is where our plugin outputs all the Schema markup that it generates.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter KoolPal

    (@koolpal007)

    Hi,

    Thanks for the reply.

    Query1: If we DO NOT APPLY these, what should we EXPECT for each of these?
    add_filter( ‘rank_math/frontend/remove_credit_notice’, ‘__return_true’ );
    add_action( ‘rank_math/whitelabel’, ‘__return_true’ );
    add_filter( ‘rank_math/sitemap/remove_credit’, ‘__return_true’ );
    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);

    Query2: class=”rank-math-schema” – what is the purpose of this? Can we remove this? How? If we remove this, what would happen?

    Thanks

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @koolpal007,

    If you don’t apply these:

    As for your question about the class name, the class="rank-math-schema" helps identify Schema markup generated by Rank Math. Removing it could affect how the Schema is applied but won’t remove the Schema itself. However, there’s no direct way to remove the class without custom code, which may not be advisable as it might impact the functionality.

    Hope that helps.

    Thread Starter KoolPal

    (@koolpal007)

    Thanks for this.

    It would help all including you if you mention this at https://rankmath.com/kb/filters-hooks-api-developer/

    Have a nice day!

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @koolpal007,
    ?
    All the filter codes we mentioned above are already mentioned in the KB guides.
    ?
    Don’t hesitate to get in touch with us if you have any other questions.

    Thread Starter KoolPal

    (@koolpal007)

    Hello,

    I meant – info like

    rank_math/frontend/remove_credit_notice: Our credit will show on the frontend:?https://i.rankmath.com/i/yxCqOs

    etc.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @koolpal007,
    ?
    Thank you for your suggestion.
    ?
    If this is something we can add to our documentation to better describe what part of the Rank Math code will be removed, we will do so.?
    ?
    Thank you so much again for bringing this to our attention.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.