how to remove dashboard menu for clients ?

Discussion in 'WordPress' started by sunny.arorra, Jan 5, 2013.

  1. #1
    i'm using this code for menu remove function

    function remove_menus () {global $menu;		$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));		end ($menu);		while (prev($menu)){			$value = explode(' ',$menu[key($menu)][0]);			if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);}		}} add_action('admin_menu', 'remove_menus');
    PHP:

    and it's working fine but not remove jetpack and contact form 7 and other's plugin like this type of url

    please help me what can i do for remove jetpack , contact form 7 and other
     
    sunny.arorra, Jan 5, 2013 IP
  2. sunny.arorra

    sunny.arorra Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    plz help me
     
    sunny.arorra, Jan 5, 2013 IP
  3. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,614
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Big0ne, Jan 6, 2013 IP