Can I use the variables defined inside the functions I'm hooking to?
-
Specifically $has_teaser, but it’d be good to know if they can in general (or will in the future?)
I’m using the_content filter, and has_teaser never returns true, no matter what page, template or excerpt / more quicktag present.
The filters are run inside the function get_the_content, so I was wondering whether the variables would still be made reach-able by wordpress or by making them $global somewhere?
Thanks.
- The topic ‘Can I use the variables defined inside the functions I'm hooking to?’ is closed to new replies.