• Hello, this is the first plugin I am devloping and I think I made some mistake calling a function (of the plugin) from the theme, because when it is active a hook is called twice :S

    Here some simplified code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    In this way the comment_text hook is called twice, if I do not run the get_rating function (called from the theme), it is just called once..

    So what’s wrong with this??

    Thanks!

  • The topic ‘Plugin hook called twice’ is closed to new replies.