• Hey ya’ll,

    Trying to figure out the best way to add an action hook to my plugin.

    Currently, my shortcode function does it’s thing and then returns the output.

    I want to add an action hook at the very end before the output is returned so users can add some custom features/functions that wouldn’t be possible via shortcode attributes.

    Because the output is being returned, I can echo the do_action call. So, what is the best way to provide this hook and have the output of the hook be returned with the shortcode output?

    Many thanks!
    -Jacob

Viewing 1 replies (of 1 total)
  • Tosh

    (@xberserker)

    I’m wondering the same thing myself.. let me know if you figure it out. I’ll post back if I figure it as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Proper way to do_action inside of shortcode code’ is closed to new replies.