{"action":"created","comment":{"url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments/92910996","pull_request_review_id":13436854,"id":92910996,"diff_hunk":"@@ -110,3 +110,36 @@ function add_events( $children, $atts ) {\n add_filter( 'mwform_choices_mw-wp-form-206', 'add_events', 10, 2 );\n add_filter( 'mwform_choices_mw-wp-form-232', 'add_events', 10, 2 );\n \n+\n+function remove_menus () {\n+  if (!current_user_can('administrator')) { //管理者ではない場合\n+    global $menu;\n+    // print_r($menu);\n+    unset($menu[4]);  // メニューの線1\n+    unset($menu[5]);  // 投稿\n+    unset($menu[10]); // メディア\n+    unset($menu[15]); // リンク\n+    unset($menu[20]); // ページ\n+    unset($menu[25]); // コメント\n+    unset($menu[28]); // MW WP Form\n+    unset($menu[59]); // メニューの線2","path":"functions.php","position":16,"original_position":16,"commit_id":"b8119548bd84330c773e5d8a3ae310533a5e432f","original_commit_id":"b8119548bd84330c773e5d8a3ae310533a5e432f","user":{"login":"sKawashima","id":9900753,"avatar_url":"https://avatars.githubusercontent.com/u/9900753?v=3","gravatar_id":"","url":"https://api.github.com/users/sKawashima","html_url":"https://github.com/sKawashima","followers_url":"https://api.github.com/users/sKawashima/followers","following_url":"https://api.github.com/users/sKawashima/following{/other_user}","gists_url":"https://api.github.com/users/sKawashima/gists{/gist_id}","starred_url":"https://api.github.com/users/sKawashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sKawashima/subscriptions","organizations_url":"https://api.github.com/users/sKawashima/orgs","repos_url":"https://api.github.com/users/sKawashima/repos","events_url":"https://api.github.com/users/sKawashima/events{/privacy}","received_events_url":"https://api.github.com/users/sKawashima/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Line indented incorrectly; expected at least 8 spaces, found 4\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-12-17T01:21:57Z","updated_at":"2016-12-17T01:21:57Z","html_url":"https://github.com/YngLab/Msite_wp_theme/pull/44#discussion_r92910996","pull_request_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments/92910996"},"html":{"href":"https://github.com/YngLab/Msite_wp_theme/pull/44#discussion_r92910996"},"pull_request":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44","id":98427490,"html_url":"https://github.com/YngLab/Msite_wp_theme/pull/44","diff_url":"https://github.com/YngLab/Msite_wp_theme/pull/44.diff","patch_url":"https://github.com/YngLab/Msite_wp_theme/pull/44.patch","issue_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/44","number":44,"state":"open","locked":false,"title":"画面の非表示調整","user":{"login":"sKawashima","id":9900753,"avatar_url":"https://avatars.githubusercontent.com/u/9900753?v=3","gravatar_id":"","url":"https://api.github.com/users/sKawashima","html_url":"https://github.com/sKawashima","followers_url":"https://api.github.com/users/sKawashima/followers","following_url":"https://api.github.com/users/sKawashima/following{/other_user}","gists_url":"https://api.github.com/users/sKawashima/gists{/gist_id}","starred_url":"https://api.github.com/users/sKawashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sKawashima/subscriptions","organizations_url":"https://api.github.com/users/sKawashima/orgs","repos_url":"https://api.github.com/users/sKawashima/repos","events_url":"https://api.github.com/users/sKawashima/events{/privacy}","received_events_url":"https://api.github.com/users/sKawashima/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-17T01:21:46Z","updated_at":"2016-12-17T01:21:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d7c51b6f102dca20e8b26925ccb5e45a36b5f58","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44/commits","review_comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44/comments","review_comment_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/44/comments","statuses_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/b8119548bd84330c773e5d8a3ae310533a5e432f","head":{"label":"YngLab:管理画面調整","ref":"管理画面調整","sha":"b8119548bd84330c773e5d8a3ae310533a5e432f","user":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"repo":{"id":71572982,"name":"Msite_wp_theme","full_name":"YngLab/Msite_wp_theme","owner":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YngLab/Msite_wp_theme","description":"10/21Create, 納品目標11/4-11","fork":false,"url":"https://api.github.com/repos/YngLab/Msite_wp_theme","forks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/forks","keys_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/teams","hooks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/hooks","issue_events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/events{/number}","events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/events","assignees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/assignees{/user}","branches_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/branches{/branch}","tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/tags","blobs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/{sha}","languages_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/languages","stargazers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/stargazers","contributors_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contributors","subscribers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscribers","subscription_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscription","commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contents/{+path}","compare_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/merges","archive_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/downloads","issues_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues{/number}","pulls_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls{/number}","milestones_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/milestones{/number}","notifications_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/labels{/name}","releases_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/releases{/id}","deployments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/deployments","created_at":"2016-10-21T14:35:47Z","updated_at":"2016-11-05T08:07:58Z","pushed_at":"2016-12-17T01:21:46Z","git_url":"git://github.com/YngLab/Msite_wp_theme.git","ssh_url":"git@github.com:YngLab/Msite_wp_theme.git","clone_url":"https://github.com/YngLab/Msite_wp_theme.git","svn_url":"https://github.com/YngLab/Msite_wp_theme","homepage":null,"size":108893,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"YngLab:master","ref":"master","sha":"861d14a7603decbf6fee0a4ac8a367a15a72a0a1","user":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"repo":{"id":71572982,"name":"Msite_wp_theme","full_name":"YngLab/Msite_wp_theme","owner":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YngLab/Msite_wp_theme","description":"10/21Create, 納品目標11/4-11","fork":false,"url":"https://api.github.com/repos/YngLab/Msite_wp_theme","forks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/forks","keys_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/teams","hooks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/hooks","issue_events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/events{/number}","events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/events","assignees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/assignees{/user}","branches_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/branches{/branch}","tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/tags","blobs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/{sha}","languages_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/languages","stargazers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/stargazers","contributors_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contributors","subscribers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscribers","subscription_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscription","commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contents/{+path}","compare_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/merges","archive_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/downloads","issues_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues{/number}","pulls_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls{/number}","milestones_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/milestones{/number}","notifications_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/labels{/name}","releases_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/releases{/id}","deployments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/deployments","created_at":"2016-10-21T14:35:47Z","updated_at":"2016-11-05T08:07:58Z","pushed_at":"2016-12-17T01:21:46Z","git_url":"git://github.com/YngLab/Msite_wp_theme.git","ssh_url":"git@github.com:YngLab/Msite_wp_theme.git","clone_url":"https://github.com/YngLab/Msite_wp_theme.git","svn_url":"https://github.com/YngLab/Msite_wp_theme","homepage":null,"size":108893,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44"},"html":{"href":"https://github.com/YngLab/Msite_wp_theme/pull/44"},"issue":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/44"},"comments":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/b8119548bd84330c773e5d8a3ae310533a5e432f"}}}}
{"actor":{"display_login":"sKawashima"}}