Array in the user tabs and the right meta in the public profile
-
Hi,
Im using the code below to add some custom field in the registration form and user > modify profile.
So I wrote ‘newmeta’ in the user registration, so having the same term in its profile, ok.
But when I modify the newmeta field in its public profile (visual editor) the term ‘array’ replaces ‘newmeta’ in its profile.
Result: I see the right terms ‘newmeta’ in the public profile page but I have ‘array’ in the user tabs.
I want not to see ‘array’ but ‘newmeta’ term, that’s important for exporting users profile too.
I need your support please.
Thank youadd_action( 'show_user_profile', 'my_show_extra_profile_fields' ); add_action( 'edit_user_profile', 'my_show_extra_profile_fields' ); function my_user_contactmethods( $user_contactmethods ){ $user_contactmethods['newmeta'] = 'NewMeta:'; return $user_contactmethods; } add_filter('user_contactmethods', 'my_user_contactmethods', 5);
- The topic ‘Array in the user tabs and the right meta in the public profile’ is closed to new replies.