현재 사용자가 wordpress에서 관리자인지 확인합니다. 워드프레스용 플러그인을 개발 중인데 현재 사용자가 관리자인지 확인하고 싶은데 아쉽게도 사용할 수 없었습니다.current_user_can()에러가 나기 때문에 글로벌을 사용하고 있습니다.$current_user하지만 admin 사용자도 if 파트에 들어갈 수 없었습니다.어떻게 고칠까요? global $current_user; if ($current_user->role[0]=='administrator'){ function hide_post_page_options() { //global $post; // Set the display css property to none for add category and add tag functions $hide..