Dev4Press No Script
Blog Post

On WordPress Hub: Control Visibility of Post Content

‘Control Visibility of Post Content Based on User Roles or Capabilities’ is my first article published on WordPress Hub website. Article covers creating of the shortcode you can use to envelop parts of post content to show it only to some users based on different criteria.

WordPress Hub (WPHub) is a great source of everything WordPress and contains WordPress themes from different theme designers and creators, reviews for premium plugins, WordPress hosting, discount coupons and deals for WordPress, tutorials and WordPress news.

‘ Control Visibility of Post Content Based on User Roles or Capabilities’ article contains full plugin with the shortcode that can use user role, login status and capabilities to limit post content visibility with extra attributes to display message in case the content is not available for current user. You can read the article and get the plugin on WordPress Hub website:

Control Visibility of Post Content Based on User Roles or Capabilities on WordPress Hub
Please wait...

About the author

Milan Petrovic
Milan Petrovic

CEO and Lead developer of Dev4Press Web Development company, working with WordPress since 2008, first as a freelancer, later founding own development company. Author of more than 250 plugins and more than 20 themes.

Subscribe to Dev4Press Newsletter

Get the latest announcements, release digests, promotions and exclusive discounts, and general Dev4Press-related news straight into your mailbox.

This form collects your email (optionally your name) for the purpose of sending you newsletters. Check out our Privacy Policy for more information on how we store and manage your data. We will not send you any spam. Newsletters are sent 2 to 4 times every month.

Latest From The Blog

plugins relase corsecurity 2.1

coreSecurity Pro 2.1

coreSecurity Pro version 2.1 brings one big new feature for enhancing user management and adding a powerful control to disable (and later enable) user accounts with a wide range of settings. There are many more important updates, improvements, and tweaks.
reviews important update bbpress 2 6 11

Important update: bbPress 2.6.11

After a long wait, new minor update for bbPress 2.6 is now available, and it is highly recommended to update your website to this latest version of bbPress as soon as possible.
plugins relase gd power search pro 2 7 lite 2 1 upd

GD Power Search Pro 2.7 & Lite 2.1 for bbPress

Both Lite and Pro version of GD Power Search for bbPress have been updated to fix several issues, discovered after testing with bbPress 2.6.11, including a fix for a bug that is present in bbPress plugin itself.

WP Rocket - Make WordPress Load Fast in a Few Clicks
SiteGround - Managed WordPress Hosting