This topic has 2 replies, 2 voices, and was last updated 11 years by dolphspeed99.

  • Author
  • #58140
     dolphspeed99
    Participant

    Hi,
    Is there any way to use the shortcode [kleo_restrict type=user] in a php file? I mean, doead it also have a php tag? It should, as many other shortcodes. If so, what is it?
    Thank you!

    #58143
     sharmstr
    Moderator

    It uses the standard WP function to check to see if a user is logged in or not: https://codex.wordpress.org/Function_Reference/is_user_logged_in

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #58192
     dolphspeed99
    Participant

    Great, this is what I needed to know! Thank you very much for your on-topic answer and also for the very fast response time.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?