From 97aa5aff102ca5b3abafcee459cd1bd85e773a13 Mon Sep 17 00:00:00 2001 From: pgmatev Date: Mon, 6 Jul 2020 16:50:57 +0300 Subject: Added new fields to profile page (not displayed on registration) --- wp-content/plugins/dx-users/class.cm.php | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'wp-content/plugins/dx-users/class.cm.php') diff --git a/wp-content/plugins/dx-users/class.cm.php b/wp-content/plugins/dx-users/class.cm.php index df2e61a..4f1dc85 100644 --- a/wp-content/plugins/dx-users/class.cm.php +++ b/wp-content/plugins/dx-users/class.cm.php @@ -1,15 +1,28 @@ 'phone-number', + 'label' => 'Phone number', + ), + array( + 'service' => 'address', + 'label' => 'Address', + ), + ); + + foreach ( $new_methods as $method ) { + if( ! isset( $contact_methods[$method['service']] ) ) { + $contact_methods[$method['service']] = $method['label']; + } + } + + return $contact_methods; } + + } -- cgit v1.3.1-26-gb76a