{"id":10172478,"date":"2018-04-12T05:24:11","date_gmt":"2018-04-12T05:24:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/simplified-function\/"},"modified":"2018-04-12T05:24:11","modified_gmt":"2018-04-12T05:24:11","slug":"simplified-function","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/simplified-function\/","title":{"rendered":"Simplified Function"},"content":{"rendered":"<p>This plugin seems abandoned and I needed to continue to support the functionality on on older site that used it.<\/p>\n<p>Here is a Gist I created that boils this plugin down to one simple filter that you can add to your custom theme or plugin:<\/p>\n<p>https:\/\/gist.github.com\/squarecandy\/1a88ac87ec3e965c61f41208f93c6b8e<\/p>\n<p>I removed all of the settings\/options so just hard code your own Amazon tag on this line: <code>$affiliate_tag = &#039;yourtaghere-123&#039;;<\/code><\/p>\n","protected":false},"template":"","class_list":["post-10172478","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10172478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10172478\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10172478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}