{"action":"created","comment":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/comments/70122725","id":70122725,"diff_hunk":"@@ -0,0 +1,107 @@\n+<?php\n+\n+\n+class AffWP_Meta_Box_Reports_Referrals extends AffWP_Meta_Box_Base {\n+\n+    /**\n+    * The id of the meta box. Must be unique.\n+    *\n+    * @access  public\n+    * @since   1.9\n+    */\n+    public $meta_box_id = 'reports-referrals-earnings';\n+\n+    /**\n+     * The position in which the meta box will be loaded\n+     * Either 'normal' side'.\n+     *\n+     * @access  public\n+     * @var     $context\n+     * @since   1.9\n+     */\n+    public $context = 'primary';\n+\n+    /**\n+     * Initialize\n+     *\n+     * @access  public\n+     * @return  void\n+     * @since   1.9\n+     */\n+    public function init() {\n+        add_action( 'add_meta_box',     array( $this, 'add_meta_box' ) );\n+        add_action( 'affwp_reports_meta_boxes', array( $this, 'add_meta_box' ) );","path":"includes/admin/reports/metaboxes/class-metabox-reports-referrals.php","position":33,"original_position":33,"commit_id":"de9a539724a3ffe9a3175bc5e8d61f3f3b7615e0","original_commit_id":"de9a539724a3ffe9a3175bc5e8d61f3f3b7615e0","user":{"login":"DrewAPicture","id":995399,"avatar_url":"https://avatars.githubusercontent.com/u/995399?v=3","gravatar_id":"","url":"https://api.github.com/users/DrewAPicture","html_url":"https://github.com/DrewAPicture","followers_url":"https://api.github.com/users/DrewAPicture/followers","following_url":"https://api.github.com/users/DrewAPicture/following{/other_user}","gists_url":"https://api.github.com/users/DrewAPicture/gists{/gist_id}","starred_url":"https://api.github.com/users/DrewAPicture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrewAPicture/subscriptions","organizations_url":"https://api.github.com/users/DrewAPicture/orgs","repos_url":"https://api.github.com/users/DrewAPicture/repos","events_url":"https://api.github.com/users/DrewAPicture/events{/privacy}","received_events_url":"https://api.github.com/users/DrewAPicture/received_events","type":"User","site_admin":false},"body":"I don't see this hook defined anywhere. The reason I was even looking is I'm wondering why we need to hook the `add_meta_box()` method twice for every sub-class.","created_at":"2016-07-08T18:50:21Z","updated_at":"2016-07-08T18:50:21Z","html_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1420#discussion_r70122725","pull_request_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420","_links":{"self":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/comments/70122725"},"html":{"href":"https://github.com/AffiliateWP/AffiliateWP/pull/1420#discussion_r70122725"},"pull_request":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420"}}},"pull_request":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420","id":76764258,"html_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1420","diff_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1420.diff","patch_url":"https://github.com/AffiliateWP/AffiliateWP/pull/1420.patch","issue_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1420","number":1420,"state":"open","locked":false,"title":"issue/1225 – Add core meta boxes","user":{"login":"ramiabraham","id":1619448,"avatar_url":"https://avatars.githubusercontent.com/u/1619448?v=3","gravatar_id":"","url":"https://api.github.com/users/ramiabraham","html_url":"https://github.com/ramiabraham","followers_url":"https://api.github.com/users/ramiabraham/followers","following_url":"https://api.github.com/users/ramiabraham/following{/other_user}","gists_url":"https://api.github.com/users/ramiabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/ramiabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramiabraham/subscriptions","organizations_url":"https://api.github.com/users/ramiabraham/orgs","repos_url":"https://api.github.com/users/ramiabraham/repos","events_url":"https://api.github.com/users/ramiabraham/events{/privacy}","received_events_url":"https://api.github.com/users/ramiabraham/received_events","type":"User","site_admin":false},"body":"Implements #1225.","created_at":"2016-07-08T14:47:58Z","updated_at":"2016-07-08T18:50:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45bfb7e0070b8461f37c0b6da67a65c0ae8ae90a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420/commits","review_comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420/comments","review_comment_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1420/comments","statuses_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/de9a539724a3ffe9a3175bc5e8d61f3f3b7615e0","head":{"label":"AffiliateWP:issue/1225","ref":"issue/1225","sha":"de9a539724a3ffe9a3175bc5e8d61f3f3b7615e0","user":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"repo":{"id":15543455,"name":"AffiliateWP","full_name":"AffiliateWP/AffiliateWP","owner":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AffiliateWP/AffiliateWP","description":"Affiliate Marketing plugin for WordPress","fork":false,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP","forks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/forks","keys_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/events","assignees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/merges","archive_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/releases{/id}","deployments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/deployments","created_at":"2013-12-31T05:09:28Z","updated_at":"2016-07-07T15:51:54Z","pushed_at":"2016-07-08T18:46:22Z","git_url":"git://github.com/AffiliateWP/AffiliateWP.git","ssh_url":"git@github.com:AffiliateWP/AffiliateWP.git","clone_url":"https://github.com/AffiliateWP/AffiliateWP.git","svn_url":"https://github.com/AffiliateWP/AffiliateWP","homepage":"https://affiliatewp.com","size":8614,"stargazers_count":201,"watchers_count":201,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":236,"forks":94,"open_issues":236,"watchers":201,"default_branch":"master"}},"base":{"label":"AffiliateWP:release/1.9","ref":"release/1.9","sha":"2c9d62bfefc0f012627a774a5edf3127fab87186","user":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"repo":{"id":15543455,"name":"AffiliateWP","full_name":"AffiliateWP/AffiliateWP","owner":{"login":"AffiliateWP","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/AffiliateWP","html_url":"https://github.com/AffiliateWP","followers_url":"https://api.github.com/users/AffiliateWP/followers","following_url":"https://api.github.com/users/AffiliateWP/following{/other_user}","gists_url":"https://api.github.com/users/AffiliateWP/gists{/gist_id}","starred_url":"https://api.github.com/users/AffiliateWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AffiliateWP/subscriptions","organizations_url":"https://api.github.com/users/AffiliateWP/orgs","repos_url":"https://api.github.com/users/AffiliateWP/repos","events_url":"https://api.github.com/users/AffiliateWP/events{/privacy}","received_events_url":"https://api.github.com/users/AffiliateWP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AffiliateWP/AffiliateWP","description":"Affiliate Marketing plugin for WordPress","fork":false,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP","forks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/forks","keys_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/events","assignees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/merges","archive_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/releases{/id}","deployments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/deployments","created_at":"2013-12-31T05:09:28Z","updated_at":"2016-07-07T15:51:54Z","pushed_at":"2016-07-08T18:46:22Z","git_url":"git://github.com/AffiliateWP/AffiliateWP.git","ssh_url":"git@github.com:AffiliateWP/AffiliateWP.git","clone_url":"https://github.com/AffiliateWP/AffiliateWP.git","svn_url":"https://github.com/AffiliateWP/AffiliateWP","homepage":"https://affiliatewp.com","size":8614,"stargazers_count":201,"watchers_count":201,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":236,"forks":94,"open_issues":236,"watchers":201,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420"},"html":{"href":"https://github.com/AffiliateWP/AffiliateWP/pull/1420"},"issue":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1420"},"comments":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1420/comments"},"review_comments":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420/comments"},"review_comment":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/pulls/1420/commits"},"statuses":{"href":"https://api.github.com/repos/AffiliateWP/AffiliateWP/statuses/de9a539724a3ffe9a3175bc5e8d61f3f3b7615e0"}}}}
{"actor":{"display_login":"DrewAPicture"}}