{"action":"created","issue":{"url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites/issues/3","repository_url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites","labels_url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites/issues/3/comments","events_url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites/issues/3/events","html_url":"https://github.com/iandunn/wp-cli-plugin-active-on-sites/issues/3","id":306647793,"number":3,"title":"unused plugins?","user":{"login":"jasondewitt","id":30046,"avatar_url":"https://avatars1.githubusercontent.com/u/30046?v=4","gravatar_id":"","url":"https://api.github.com/users/jasondewitt","html_url":"https://github.com/jasondewitt","followers_url":"https://api.github.com/users/jasondewitt/followers","following_url":"https://api.github.com/users/jasondewitt/following{/other_user}","gists_url":"https://api.github.com/users/jasondewitt/gists{/gist_id}","starred_url":"https://api.github.com/users/jasondewitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasondewitt/subscriptions","organizations_url":"https://api.github.com/users/jasondewitt/orgs","repos_url":"https://api.github.com/users/jasondewitt/repos","events_url":"https://api.github.com/users/jasondewitt/events{/privacy}","received_events_url":"https://api.github.com/users/jasondewitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-19T21:41:52Z","updated_at":"2018-03-20T16:52:57Z","closed_at":null,"author_association":"NONE","body":"Hey there, love this command, it really helped me out just now.\r\n\r\nI'd really like to see a way to just output plugins that are not in use on any site on the MultiSite. I might take a stab at a PR, but I'm a systems guy, not a PHP programmer. =)\r\n\r\nI was able to somewhat accomplish an output similar to what I want with this loop:\r\n```\r\nfor plugin in $(wp --allow-root plugin list --field=name); do if wp --allow-root --require=/root/wp-cli-plugin-active-on-sites.php plugin active-on-sites $plugin |grep -q \"is not active\"; then echo $plugin; fi; echo; done\r\n```"},"comment":{"url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites/issues/comments/374673307","html_url":"https://github.com/iandunn/wp-cli-plugin-active-on-sites/issues/3#issuecomment-374673307","issue_url":"https://api.github.com/repos/iandunn/wp-cli-plugin-active-on-sites/issues/3","id":374673307,"user":{"login":"iandunn","id":484068,"avatar_url":"https://avatars3.githubusercontent.com/u/484068?v=4","gravatar_id":"","url":"https://api.github.com/users/iandunn","html_url":"https://github.com/iandunn","followers_url":"https://api.github.com/users/iandunn/followers","following_url":"https://api.github.com/users/iandunn/following{/other_user}","gists_url":"https://api.github.com/users/iandunn/gists{/gist_id}","starred_url":"https://api.github.com/users/iandunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandunn/subscriptions","organizations_url":"https://api.github.com/users/iandunn/orgs","repos_url":"https://api.github.com/users/iandunn/repos","events_url":"https://api.github.com/users/iandunn/events{/privacy}","received_events_url":"https://api.github.com/users/iandunn/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T16:52:57Z","updated_at":"2018-03-20T16:52:57Z","author_association":"OWNER","body":"Thanks! I'm glad it's been helpful :)\r\n\r\nIt'd probably take a relatively significant refactor of this package to achieve what you want, since it was designed to do the opposite, but it might not be that hard. \r\n\r\nAn easier way might be to modify [wp find-unused-themes](https://github.com/runcommand/find-unused-themes), or install [wpmu-plugin-stats](https://wordpress.stackexchange.com/q/85123/3898)."}}
{"actor":{"display_login":"iandunn"}}