How can I change the output method based on if a function was called by a short code or action hook
I have a function that is hooked to the end all posts. I’m adding a shortcode so the same function can be called else where. And I need to change the output method based on whether the function was called by a shortcode or the hook.