Logged in and Logged out Shortcode for WordPress
//logged in shortcode function check_user ($params, $content = null){ //check tha the user is logged in if ( is_user_logged_in() ){ //user is logged in so show the content return $content; } else{ //user is not logged in so hide the…
