When I use the following code on a single blog site it works but if fails on a multi site that uses the domain mapping plugin. This code is in a plugin that is called by a short code.
$user = wp_get_current_user();
$current_user is empty. Any ideas?
Update: I found a similar question here that said the init had to run first. I did test for this condition and the init had run before this code is called.