I contain all my short-codes in (the equivalent of) functions.php
. I want to have one short-code function share information in an object, and another able to access that object. The shortcodes may or may not be on a page together.
I was thinking a unique global $obj
rather than using global $post
.
What is the 'correct' method in Wordpress?