I am trying to add an extra field or two underneath the "Name" or "About" section in the Wordpress user profile. So far I have only been able to accomplish this by:
//Begin
add_action('profile_personal_options',function(){
ob_start();
});
//Grab Contents and Inject
add_action('show_user_profile',function($user){
$contents = ob_get_contents();
ob_end_clean();
echo str_replace('<label for="description','!!!!!<label for="description',$contents);
});
But this seems like a dirty hack - what is the right way to accomplish this?