How to add hooks

#31445
  • Resolved David
    Rank Math free

    I want to add the hook to make Rank Math appear below my ACF fields.
    What file do i need to add the code to?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Todd
    Rank Math free

    Hi David,

    Thanks for getting in touch with us.

    I assume you want to disable Rank Math in the Gutenberg Sidebar and want to show it below your posts.

    You can do that by using this code in your theme’s functions.php file (towards the very bottom)
    https://rankmath.com/kb/filters-hooks-api-developer/#disable-guteberg

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    David
    Rank Math free

    Hi thanks for the reply.

    I just want it to show below the customs fiedls in my custom posts.

    i found this code on this page:https://rankmath.com/kb/filters-hooks-api-developer/

    I just dont know what file i need to paste it in to. Is it the function.php or a plug in file.

    /**
     * Change the Rank Math Metabox Priority
     *
     * @param array $priority Metabox Priority.
     */
    add_filter( 'rank_math/metabox/priority', function( $priority ) {
     return 'low';
    });
    Todd
    Rank Math free

    Hi,

    You have to place that code in your theme’s functions.php file.

    Paste it at the very end.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    David
    Rank Math free

    awesome! Thank you for the fast reply. I will give it a go.

    Todd
    Rank Math free

    Hi David,

    Sounds super.

    Let me know how it goes.

    David
    Rank Math free

    Hi Todd

    It looks like it worked. Thanks for the help.

    Kind regards

    Todd
    Rank Math free

    Hi David,

    I am so glad to be of help. We are always here if you need us in the future.

    Hey, if it isn’t too much to ask for – would you mind leaving us a review here?

    https://s.rankmath.com/reviewrm

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us.

    Thank you.

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

The ticket ‘How to add hooks’ is closed to new replies.