How it works...
In step 4, we added a set of plugin-specific shortcodes to the page. In the first section, we wrapped [usp-login-form] shortcode inside opening and closing [usp_visitor] shortcodes. The usp_visitor shortcode is used to display content within the opening and closing tags to users who are not logged in to the site. So, the login form generated from the plugin will be displayed to users not logged in to the site. The post creation can be done only after login, in this scenario.
In the second set, we wrapped [user-submitted-posts] shortcode inside [usp_member] shortcode. So, the content within the opening and closing tags will only be displayed to users logged in to the site. The [user-submitted-posts] shortcode is used to display ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access