Execute a block on who is currently logged in

Shortcode: aw2_if_logged_in

Parameters

——————–

main: yes or no

role: Role you are looking at. Possible values admin, superadmin, subscriber and any other role. Leave the parameter if you just want to check if somebody is logged in
user_login: Now you can execute a code block specifically for a logged in username. (added on 25th Feb 2015)

Examples

—————–