How do I make a variable available inside partials?
WordPress caches the user information. There’s really no problem just to call get_userdata every time you need it. The only thing you are doing by transfering it to a variable $userdata is have WP fetch it from another place in the memory. Note: read this post for a more general dealing with passing variables to … Read more