{"action":"created","issue":{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/137","labels_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/137/comments","events_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/137/events","html_url":"https://github.com/deliciousbrains/GlotPress/pull/137","id":115616385,"number":137,"title":"Add hooks for plugins","user":{"login":"toolstack","id":9053749,"avatar_url":"https://avatars.githubusercontent.com/u/9053749?v=3","gravatar_id":"","url":"https://api.github.com/users/toolstack","html_url":"https://github.com/toolstack","followers_url":"https://api.github.com/users/toolstack/followers","following_url":"https://api.github.com/users/toolstack/following{/other_user}","gists_url":"https://api.github.com/users/toolstack/gists{/gist_id}","starred_url":"https://api.github.com/users/toolstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolstack/subscriptions","organizations_url":"https://api.github.com/users/toolstack/orgs","repos_url":"https://api.github.com/users/toolstack/repos","events_url":"https://api.github.com/users/toolstack/events{/privacy}","received_events_url":"https://api.github.com/users/toolstack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/labels/ready%20for%20review","name":"ready for review","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/milestones/1","html_url":"https://github.com/deliciousbrains/GlotPress/milestones/1.0","labels_url":"https://api.github.com/repos/deliciousbrains/GlotPress/milestones/1/labels","id":1322118,"number":1,"title":"1.0","description":"","creator":{"login":"bradt","id":190095,"avatar_url":"https://avatars.githubusercontent.com/u/190095?v=3","gravatar_id":"","url":"https://api.github.com/users/bradt","html_url":"https://github.com/bradt","followers_url":"https://api.github.com/users/bradt/followers","following_url":"https://api.github.com/users/bradt/following{/other_user}","gists_url":"https://api.github.com/users/bradt/gists{/gist_id}","starred_url":"https://api.github.com/users/bradt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradt/subscriptions","organizations_url":"https://api.github.com/users/bradt/orgs","repos_url":"https://api.github.com/users/bradt/repos","events_url":"https://api.github.com/users/bradt/events{/privacy}","received_events_url":"https://api.github.com/users/bradt/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":94,"state":"open","created_at":"2015-09-24T13:18:51Z","updated_at":"2015-11-10T22:38:14Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-11-07T00:13:07Z","updated_at":"2015-11-10T22:47:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/137","html_url":"https://github.com/deliciousbrains/GlotPress/pull/137","diff_url":"https://github.com/deliciousbrains/GlotPress/pull/137.diff","patch_url":"https://github.com/deliciousbrains/GlotPress/pull/137.patch"},"body":"Add three hooks for plugins to use:\r\n\r\n1. gp_loaded - fires after all GP functions have loaded but before the upgrade script.\r\n2. gp_init - fires on the WP init hook but after the rewrite rules have been registered.\r\n3. gp_plugins_loaded - fires on the WP plugins_loaded hook.\r\n\r\nResolves #107."},"comment":{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/comments/155592394","html_url":"https://github.com/deliciousbrains/GlotPress/pull/137#issuecomment-155592394","issue_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/137","id":155592394,"user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T22:47:33Z","updated_at":"2015-11-10T22:47:33Z","body":"> In this case an extra hook seems prudent as we will never be able to guess all the things a plugin might do.\r\n\r\nSo maybe we should wait until an extra action gets requested?\r\n\r\nThese are the hooks from WooCommerce:\r\n* https://github.com/woothemes/woocommerce/blob/cf972273c48c5d73854220c4c61c94938c61dd27/woocommerce.php#L136\r\n* https://github.com/woothemes/woocommerce/blob/cf972273c48c5d73854220c4c61c94938c61dd27/woocommerce.php#L283\r\n* https://github.com/woothemes/woocommerce/blob/cf972273c48c5d73854220c4c61c94938c61dd27/woocommerce.php#L309"}}