|
<?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; |
|
} |