How to Customized User Setting acording to user role in wordpress

/*remove unwanted menu for user Start*/

add_action( ‘admin_init’, ‘my_remove_menu_pages’);

function my_remove_menu_pages() {

global $current_user;

if ($current_user->roles[0] == ‘contributor’) {

$tourpackage = get_user_meta($current_user->ID,’tourpackage’,true);
$carhire = get_user_meta($current_user->ID,’carhires’,true);

remove_menu_page(‘tools.php’);
remove_menu_page(‘edit-comments.php’);
remove_menu_page(‘edit.php’);

if($tourpackage!=’tour’){

remove_menu_page(‘edit.php?post_type=tourpackage’);

}

if($carhire!=’car’){

remove_menu_page(‘edit.php?post_type=car-hire’);

}

remove_meta_box(‘dashboard_right_now’, ‘dashboard’, ‘normal’); //Removes the ‘At a Glance’ widget
remove_meta_box(‘dashboard_activity’, ‘dashboard’, ‘normal’); //Removes the ‘Activity’ widget (since 3.8)

}

}

/*remove unwanted menu item from admin bar for user Start*/

function remove_admin_bar_links() {
global $wp_admin_bar, $current_user;

if ($current_user->roles[0] == ‘contributor’) {

$wp_admin_bar->remove_menu(‘updates’);          // Remove the updates link
$wp_admin_bar->remove_menu(‘comments’);         // Remove the comments link
$wp_admin_bar->remove_menu(‘new-content’);      // Remove the content link
$wp_admin_bar->remove_menu(‘w3tc’);             // If you use w3 total cache remove the performance link

}
}
add_action( ‘wp_before_admin_bar_render’, ‘remove_admin_bar_links’ );

/*remove unwanted menu item from admin bar for user End*/

/*Add Extra fieled for create and edit user and save to database Start*/

add_action( ‘edit_user_profile’, ‘my_show_extra_profile_fields’ );
add_action( ‘user_new_form’, ‘my_show_extra_profile_fields’ );

function my_show_extra_profile_fields( $user ) { ?>

<h3>Allow Acess For Post</h3>

<table class=”form-table”>

<tr>
<th><label for=”tourpackage”>Tour Packages</label></th>

<td>
<input type=”checkbox” name=”tourpackage” id=”tourpackage” <?php if(get_usermeta($user->ID ,’tourpackage’) == ‘tour’){ echo ‘checked’;} ?> value=”tour”/>
</td>
</tr>

<tr>
<th><label for=”carhires”>Car Hires</label></th>

<td>
<input type=”checkbox” name=”carhires” id=”carhires” <?php if(get_usermeta($user->ID ,’carhires’) == ‘car’){ echo ‘checked’;} ?> value=”car”/>
</td>
</tr>

</table>
<?php }

add_action( ‘user_register’, ‘my_save_extra_profile_fields’ );
add_action( ‘edit_user_profile_update’, ‘my_save_extra_profile_fields’ );

function my_save_extra_profile_fields( $user_id ) {

if ( !current_user_can( ‘edit_user’, $user_id ) )
return false;

update_usermeta( $user_id, ‘tourpackage’, $_POST[‘tourpackage’]);
update_usermeta( $user_id, ‘carhires’, $_POST[‘carhires’] );
}

/*Add Extra fieled for create and edit user and save to database End*/