__construct()
__construct()
Shortcodes constructor.
Class Shortcodes
um_shortcode_show_content_for_role(array $atts = array(), string $content = '') : string
Shortcode: Show custom content to specific role
Show content to specific roles [um_show_content roles='member'] [/um_show_content] You can add multiple target roles, just use ',' e.g. [um_show_content roles='member,candidates,pets']
Hide content from specific roles [um_show_content not='contributors'] [/um_show_content] You can add multiple target roles, just use ',' e.g. [um_show_content roles='member,candidates,pets']
array | $atts | |
string | $content |