- not show account and profile on profile and account pages

This commit is contained in:
ashubawork
2023-05-08 19:50:01 +03:00
parent 7b1dbe6bd1
commit 35f9aac031
4 changed files with 20 additions and 15 deletions
-4
View File
@@ -691,10 +691,6 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
}
}
if ( ! is_user_logged_in() && isset( $args['widget'] ) && 1 === (int) $args['widget'] && 'profile' === $mode ) {
return;
}
// for profiles only
if ( $mode == 'profile' && um_profile_id() ) {