Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function vip_user_shortcode($atts, $content = null)
- {
- if (is_user_logged_in() && !is_null($content) && !is_feed()) {
- return $content;
- }
- }
- add_shortcode('vip_only', 'vip_user_shortcode');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement