• 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:

    https://pastebin.com/nkNLdC6k

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

    So what’s wrong with this??

    Thanks!

  • The topic ‘Call plugin function / hook runned twice’ is closed to new replies.