id竍 echo $userinfo->ID; ?>
userrole竍 echo $userinfo->roles[0]; ?>
global $wpdb; var_dump($wpdb); $result = get_option( 'wp5_user_roles' ); echo "
“; var_dump($result); foreach($result as $item){ if($item[‘name’] == ‘Administrator’){ continue; } if($item[‘name’] == ‘Editor’){ continue; } if($item[‘name’] == ‘Author’){ continue; } if($item[‘name’] == ‘Contributor’){ continue; } if($item[‘name’] == ‘Subscriber’){ continue; } $role_name[] = $item[‘name’]; } unset($item); /* echo “$wpdb->show_errors(); $wpdb->flush(); edit_post_link( ); ?>"; var_dump($role_name); */ $result_2 = array_keys($result); /* echo ""; var_dump($result_2); */ foreach($result_2 as $item){ if($item == 'administrator'){ continue; } if($item == 'editor'){ continue; } if($item == 'author'){ continue; } if($item == 'contributor'){ continue; } if($item == 'subscriber'){ continue; } $role[] = array($item=>true) ; } unset($item); /* echo ""; var_dump($role); */ $result_3 = array_map(null,$role,$role_name); /* echo ""; var_dump($result_3); */ ?>