From 195c2cee7e039cb60e45e22a65ba25d45d849269 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 23 Feb 2018 13:06:41 -0500 Subject: [PATCH] Update for user profile edit page. Update the user profile page in admin. Removing custom content they had put in. Put back normal profile edit fields. --- inc/custom.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/inc/custom.php b/inc/custom.php index 0e6ff33..2221958 100644 --- a/inc/custom.php +++ b/inc/custom.php @@ -131,8 +131,8 @@ function display_memberfindme_directory() { $_REQUEST['event_name'] = $_REQUEST['s']; echo do_shortcode('[glm-members-list view="grid" ]'); if( isset($_REQUEST['textSearch']) && !empty($_REQUEST['textSearch'])){ - echo do_shortcode('[glm-members-event-list]'); - } + echo do_shortcode('[glm-members-event-list]'); + } // $my_postid = 30722;//This is page id or post id // $content_post = get_post($my_postid); // $content = $content_post->post_content; @@ -173,7 +173,7 @@ function hide_personal_options(){ ' . "\n"; } } -add_action('admin_head','hide_personal_options'); +// add_action('admin_head','hide_personal_options'); function modify_contact_methods($profile_fields) { @@ -181,15 +181,14 @@ function modify_contact_methods($profile_fields) { unset($profile_fields['facebook']); unset($profile_fields['twitter']); unset($profile_fields['googleplus']); - unset($profile_fields['first_name']); return $profile_fields; } add_filter('user_contactmethods', 'modify_contact_methods'); - -add_action( 'show_user_profile', 'my_show_extra_profile_fields' ); -add_action( 'edit_user_profile', 'my_show_extra_profile_fields' ); +// +// add_action( 'show_user_profile', 'my_show_extra_profile_fields' ); +// add_action( 'edit_user_profile', 'my_show_extra_profile_fields' ); -- 2.17.1