From: Steve Sutton Date: Fri, 23 Feb 2018 18:06:41 +0000 (-0500) Subject: Update for user profile edit page. X-Git-Tag: v1.0.10^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=195c2cee7e039cb60e45e22a65ba25d45d849269;p=WP-Themes%2Fwmta.git 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. --- 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' );