Created
February 10, 2012 21:13
-
-
Save billerickson/1792924 to your computer and use it in GitHub Desktop.
Remove unused user profile fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove Unused User Settings | |
remove_action( 'show_user_profile', 'genesis_user_options_fields' ); | |
remove_action( 'edit_user_profile', 'genesis_user_options_fields' ); | |
remove_action( 'show_user_profile', 'genesis_user_archive_fields' ); | |
remove_action( 'edit_user_profile', 'genesis_user_archive_fields' ); | |
remove_action( 'show_user_profile', 'genesis_user_seo_fields' ); | |
remove_action( 'edit_user_profile', 'genesis_user_seo_fields' ); | |
remove_action( 'show_user_profile', 'genesis_user_layout_fields' ); | |
remove_action( 'edit_user_profile', 'genesis_user_layout_fields' ); | |
add_filter( 'user_contactmethods', 'be_contactmethods' ); | |
/** | |
* Customize Contact Methods | |
* @author Bill Erickson | |
* @link http://sillybean.net/2010/01/creating-a-user-directory-part-1-changing-user-contact-fields/ | |
* | |
* @param array $contactmethods | |
* @return array | |
*/ | |
function be_contactmethods( $contactmethods ) { | |
unset( $contactmethods['aim'] ); | |
unset( $contactmethods['yim'] ); | |
unset( $contactmethods['jabber'] ); | |
return $contactmethods; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment