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.

Latest From The Blog

plugins release forum toolbox for bbpress 8.0

forumToolbox for bbPress 8.0

We are thrilled to announce the official release of forumToolbox Pro 8.0! This release marks a major evolution, focusing on modernizing core workflows, stripping out legacy technical debt, and introducing new attachments upload interface reimagined from ground up.
plugins release sweeppress pro lite 7

SweepPress 7.0 Pro & Lite

SweepPress, version 7.0 (both Lite and Pro), is a major update that brings one new management tool for managing attachments in media library, new shared library, new Freemius SDK, various improvements and fixes.
announcement pricing changes

Changes to the plugins pricing

Dev4Press plugins switched to use Freemius in January of 2025, and to make things simpler, the new pricing model remained as it was before that. We have now decided to update the pricing model.

0
0
0
0
0
0
0
0
0