Update for user profile edit page.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 23 Feb 2018 18:06:41 +0000 (13:06 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 23 Feb 2018 18:06:41 +0000 (13:06 -0500)
Update the user profile page in admin. Removing custom content they had
put in. Put back normal profile edit fields.

inc/custom.php

index 0e6ff33..2221958 100644 (file)
@@ -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(){
        </script>' . "\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' );