- 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
+1 -1
View File
@@ -2076,7 +2076,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
public function edit_field( $key, $data, $rule = false, $args = array() ) {
global $_um_profile_id;
if ( isset( $data['widget'] ) && 1 === (int) $data['widget'] ) {
if ( isset( $data['is_block'] ) && 1 === (int) $data['is_block'] ) {
$_um_profile_id = get_current_user_id();
$form_suffix = '';
} else {