Shortcode only when user logged in
-
Is there a hook available within the plugin that will prevent the presentation of the shortcode/buttons when a user is not logged in?
For example, in my scenario, after processing the charge, I hook in and use the payment description to automatically grant voting tokens based on how they pay. However, this makes use of the current user id. I would want the shortcodes/buttons to not be visible if a user is not logged in.
If this is not available now, is this something that could be added in the free/paid versions in the future? One option I suppose I could use now is adding a filter to the post content and searching for the shortcodes and removing them if a user isn’t logged in, but that would be a bit tricky I think.
Thanks again for the great plugin. I’m considering the pro version because it is so easy to work with. I would hope the pro version maintains this ease of use.
The topic ‘Shortcode only when user logged in’ is closed to new replies.