How to add the filter in rankmath plugin

#43651
  • Hello there,

    I’ve read your blog post-https://rankmath.com/kb/filters-hooks-api-developer/ In which I found that we can change our keyword targeting limit by adding a filter, Can you help me how to do it?

    What should I do?

    Thanks with regards,
    Abhishek Verma

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math today.

    To be able to use any of the listed filters on the referenced page, you will only need to copy the snippet and paste it on your child theme’s functions.php file. Most of the filters will however require additional modification to suit the use case.

    Here is an example:

    /**
     * Change the Focus Keyword Limit
     */
    add_filter( 'rank_math/focus_keyword/maxtags', function() {
        return 8; // Number of Focus Keywords. 
    });

    The code above will increase the keyword limit to 8 and you can change this value to any other preferred number.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘How to add the filter in rankmath plugin’ is closed to new replies.