WordPress Custom User Profile Fields

With the Custom User Profile Fields Generator by WP Skills you can add your own fields to WordPress user profiles on the admin dashboard without a plugin.
#1
wp-skills.com

// Add Custom User Profile Fields
// Get user meta on frontend with: get_user_meta( $user_id, "field_id", true );
function custom_user_fields_741( $user ) {
	$output = '';
        $output .= '<table class="form-table">';  
	$output .= '</table>';
	echo $output;
}

add_action( 'show_user_profile', 'custom_user_fields_741' );
add_action( 'edit_user_profile', 'custom_user_fields_741' );

// Save Custom User Profile Fields
function custom_user_fields_save_741( $user_id ) {

	if ( !current_user_can( 'edit_user', $user_id ) ) {
		return false;
        }
        
}
add_action( 'personal_options_update', 'custom_user_fields_save_741' );
add_action( 'edit_user_profile_update', 'custom_user_fields_save_741' );