Documentation

Front-end Membership Modules

Home / Users Only Content Shortcode

Users Only Content Shortcode

There are times when we want to display certain content only to logged in users. You can use this shortcode to display the content only to users who are logged in to your website.

Shortcode Parameters:

class
You can specify custom CSS class for the form container, if you wish to use your own CSS for the form styles.

Using Shortcode Generator

You can use our Shortcode Generator to easily specify parameters and insert this shortcode on any page while editing a page or post.

shortcode-generator-user-only-content

Using user only content shortcode in template files

If you are a developer or creating your own WordPress theme, you can call this shortcode via following PHP function: