You can use the conditional check and wrap it around the code you want to show:
if ( is_user_logged_in() ) {
// show details
}
You can use the conditional check and wrap it around the code you want to show:
if ( is_user_logged_in() ) {
// show details
}