{"action":"closed","number":571,"pull_request":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/571","id":31125429,"html_url":"https://github.com/affiliatewp/AffiliateWP/pull/571","diff_url":"https://github.com/affiliatewp/AffiliateWP/pull/571.diff","patch_url":"https://github.com/affiliatewp/AffiliateWP/pull/571.patch","issue_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/571","number":571,"state":"closed","locked":false,"title":"Add hooks to creatives","user":{"login":"LuisHerranz","id":3305402,"avatar_url":"https://avatars.githubusercontent.com/u/3305402?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisHerranz","html_url":"https://github.com/LuisHerranz","followers_url":"https://api.github.com/users/LuisHerranz/followers","following_url":"https://api.github.com/users/LuisHerranz/following{/other_user}","gists_url":"https://api.github.com/users/LuisHerranz/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisHerranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisHerranz/subscriptions","organizations_url":"https://api.github.com/users/LuisHerranz/orgs","repos_url":"https://api.github.com/users/LuisHerranz/repos","events_url":"https://api.github.com/users/LuisHerranz/events{/privacy}","received_events_url":"https://api.github.com/users/LuisHerranz/received_events","type":"User","site_admin":false},"body":"Allow to add custom creatives, before or after the list\r\n\r\nFor example:\r\n\r\n    // add video embed code to affiliatewp creatives\r\n    function add_video_to_creatives() {\r\n    ?>\r\n      <div class=\"affwp-creative\">\r\n        <p>\r\n          <!-- custom video code here -->\r\n       </p>\r\n       <p>Copy and paste the following:</p>\r\n       <p>\r\n           <!-- custom embed video code here -->\r\n        </p>\r\n      </div>\r\n    <?php\r\n    }\r\n    add_action( 'affwp-before-first-creative', 'add_video_to_creatives' );\r\n\r\nAlready using it in my website and it's working great.","created_at":"2015-03-13T13:30:36Z","updated_at":"2015-04-08T16:15:05Z","closed_at":"2015-04-08T16:15:05Z","merged_at":"2015-04-08T16:15:05Z","merge_commit_sha":"de19617dba2d0e7c772e93eb5862f32409cddc2f","assignee":null,"milestone":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/milestones/28","html_url":"https://github.com/affiliatewp/AffiliateWP/milestones/1.6","labels_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/milestones/28/labels","id":909454,"number":28,"title":"1.6","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":32,"state":"open","created_at":"2014-12-18T22:20:04Z","updated_at":"2015-04-08T16:15:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/571/commits","review_comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/571/comments","review_comment_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/571/comments","statuses_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/statuses/10486a62c762ad70be4137aa6ccbfc1c23411342","head":{"label":"LuisHerranz:master","ref":"master","sha":"10486a62c762ad70be4137aa6ccbfc1c23411342","user":{"login":"LuisHerranz","id":3305402,"avatar_url":"https://avatars.githubusercontent.com/u/3305402?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisHerranz","html_url":"https://github.com/LuisHerranz","followers_url":"https://api.github.com/users/LuisHerranz/followers","following_url":"https://api.github.com/users/LuisHerranz/following{/other_user}","gists_url":"https://api.github.com/users/LuisHerranz/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisHerranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisHerranz/subscriptions","organizations_url":"https://api.github.com/users/LuisHerranz/orgs","repos_url":"https://api.github.com/users/LuisHerranz/repos","events_url":"https://api.github.com/users/LuisHerranz/events{/privacy}","received_events_url":"https://api.github.com/users/LuisHerranz/received_events","type":"User","site_admin":false},"repo":{"id":32156688,"name":"AffiliateWP","full_name":"LuisHerranz/AffiliateWP","owner":{"login":"LuisHerranz","id":3305402,"avatar_url":"https://avatars.githubusercontent.com/u/3305402?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisHerranz","html_url":"https://github.com/LuisHerranz","followers_url":"https://api.github.com/users/LuisHerranz/followers","following_url":"https://api.github.com/users/LuisHerranz/following{/other_user}","gists_url":"https://api.github.com/users/LuisHerranz/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisHerranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisHerranz/subscriptions","organizations_url":"https://api.github.com/users/LuisHerranz/orgs","repos_url":"https://api.github.com/users/LuisHerranz/repos","events_url":"https://api.github.com/users/LuisHerranz/events{/privacy}","received_events_url":"https://api.github.com/users/LuisHerranz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LuisHerranz/AffiliateWP","description":"Affiliate plugin for WordPress","fork":true,"url":"https://api.github.com/repos/LuisHerranz/AffiliateWP","forks_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/forks","keys_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/events","assignees_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/merges","archive_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/LuisHerranz/AffiliateWP/releases{/id}","created_at":"2015-03-13T13:15:06Z","updated_at":"2015-03-21T19:24:20Z","pushed_at":"2015-03-21T19:24:20Z","git_url":"git://github.com/LuisHerranz/AffiliateWP.git","ssh_url":"git@github.com:LuisHerranz/AffiliateWP.git","clone_url":"https://github.com/LuisHerranz/AffiliateWP.git","svn_url":"https://github.com/LuisHerranz/AffiliateWP","homepage":null,"size":2342,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"affiliatewp:master","ref":"master","sha":"7c35fedd2532193b4fb73c0e41419d45b661586a","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 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}","created_at":"2013-12-31T05:09:28Z","updated_at":"2015-04-07T13:09:11Z","pushed_at":"2015-04-08T16:15:05Z","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":null,"size":6295,"stargazers_count":116,"watchers_count":116,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":131,"forks":52,"open_issues":131,"watchers":116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/571"},"html":{"href":"https://github.com/affiliatewp/AffiliateWP/pull/571"},"issue":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/571"},"comments":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/571/comments"},"review_comments":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/571/comments"},"review_comment":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/571/commits"},"statuses":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/statuses/10486a62c762ad70be4137aa6ccbfc1c23411342"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":2,"additions":5,"deletions":1,"changed_files":1}}