ok – i found the error – i called the function ‘update_usermeta()’ at the wrong place (see code below for the correction). To work with the function ‘update_usermeta()’ – i have to include another page of functions, because i get an error message that a function ‘get_userdata()’ is not defined:
‘Fatal error: Call to undefined function get_userdata() in C:\htdocs\wordpress\wp-includes\functions.php on line 2238’.
So i decide to include the missing file (pluggable-functions.php) with ‘require_once()’ and hope that it works in the future?!
function add_fields() {
echo ‘<input type=”text” name=”test” size=”95″>’;
}
require_once(‘../wp-includes/pluggable-functions.php’);
add_action(‘show_user_profile’, ‘add_fields’);
if(…) {
update_usermeta($_POST[checkuser_id], ‘test’, $_POST[test]);
}