KTS915 on "[Plugin: Asgaros Forum] Restrict a forum to authors only (not available to subscribers)"

ساخت وبلاگ

I use the s2Member plugin, and this provides shortcodes that enable me to control what different user roles can access. For example, the shortcode [s2If current_user_is(editor)]...[/s2If] would make the ellipsis available only to an editor.

Normally, these shortcodes work well in conjunction with shortcodes from other plugins. So I have tried
[s2If current_user_is(editor)][forum][/s2If]
but, unfortunately, it doesn't work. All that happens is that the s2Member shortcodes are displayed in plain text above and below the forum.

Could you, perhaps, modify Asgaros Forum so that shortcodes from other plugins can be used on the same page? That way, you won't need to build in an "access control" feature of your own, but can simply rely on those used by other plugins.

Thanks!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 542 تاريخ : يکشنبه 30 خرداد 1395 ساعت: 23:33