• I am trying to echo within a hook but it’s not working. Is there a way to console log arguments of hooks? I’ve tried adding a console log function that outputs a script to the page but that doesn’t work either. There must be an easy way to debug the arguments of hooks from within them. I am so used to console log programming with JS that I am lost without it! Any advice/suggestions appreciated. Thanks!

Viewing 1 replies (of 1 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi nobenati!

    That would really depend on the hook too. Not all filters/hooks have the same amount of $args being passed to them. They all at least pass one though. 🙂

    The real question is what hook/filter are you trying to figure out?

Viewing 1 replies (of 1 total)
  • The topic ‘Debugging Hooks’ is closed to new replies.