I tried and didn’t work. I tried also
if(!is_user_logged_in()){
return $string;
}else{
return '';
}
I think this shortcode should be public/registered somehow? I see it work properly only if I’m logged in WordPress.
-
This reply was modified 7 years, 2 months ago by bcworkz. Reason: code fixed