[content_control roles=”subscriber,editor” logged_out=”0″ class=”custom-css-class” message=”You don’t have access to this.”]Logged in content[/content_control]
All parameters are optional.
Have it added to readme for next update. Used to be there, not sure what happened to it.
Hope that helps.
-
This reply was modified 3 years, 4 months ago by Daniel Iser.
Hi Daniel,
Nice, I got it going!!! 🙂
However, I also realized my site got so much slower/long time to load page-to-page form this plugin!!! My site always 1.5 sec or less on GTmetrix. Now it takes about 4-6 sec each time? I tested many times to deactivated/activated. Ya, I can see the differences.
But using your “User Menus – Nav Menu Visibility” plugin. This plugin is fine, it kept my site speed. 🙂
Thanks for your shortcode.
@damndramaqueen – Glad you got it working.
That said, this plugin requires being logged in to get past the locked content areas, that also means you would be bypassing the statically cached copies of your sites pages your caching plugin likely is generating.
Cache plugins are meant for non-logged in users basically.
Bypassing cache means your server is generating the entire page before it sends it to the browser. If there is a lot of dynamic content it could take much longer.
Curious how long does it take you to load a typical page in your wp-admin area? If its about the same as the 4-6s then I think you now know why its slower. No way around that except faster server/connection.
That said this plugin shouldn’t really have any overhead impact, it simply filters content only when the shortcode is run if that is all your using currently.
Hope that helps.