Incompatibility with custom profile fields
-
Hi,
I’m using the following code to add custom profile fields to user profiles so they can be output on the front end (in an authorbox at the end of single.php and alike):
// Replace user profile fields function add_twitter_contactmethod( $contactmethods ) { // Add Twitter if ( !isset( $contactmethods['twitter'] ) ) $contactmethods['twitter'] = 'Twitter url'; if ( !isset( $contactmethods['facebook url'] ) ) $contactmethods['facebook'] = 'Facebook url'; if ( !isset( $contactmethods['gplus'] ) ) $contactmethods['gplus'] = 'GPlus url'; // Remove Yahoo IM if ( isset( $contactmethods['yim'] ) ) unset( $contactmethods['yim'] ); // Remove AIM if ( isset( $contactmethods['aim'] ) ) unset( $contactmethods['aim'] ); // Remove Jabber/ Google Talk if ( isset( $contactmethods['jabber'] ) ) unset( $contactmethods['jabber'] ); return $contactmethods; } add_filter( 'user_contactmethods', 'add_twitter_contactmethod', __('add_facebook_contactmethod', __('add_gplus_contactmethod', 10, 1 )));
However with your plugin enabled, it removes my custom fields from the users profile page in the back-end.
Can you give any hints as to why this is happening?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Incompatibility with custom profile fields’ is closed to new replies.