{"id":49362,"date":"2016-06-29T13:37:28","date_gmt":"2016-06-29T13:37:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-edd-addons-api\/"},"modified":"2016-06-30T10:56:39","modified_gmt":"2016-06-30T10:56:39","slug":"wp-edd-addons-api","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-edd-addons-api\/","author":13722774,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"4.6.0","requires":"4.3","requires_php":"","requires_plugins":"","header_name":"WP EDD Addons API","header_author":"Alessandro Tesoro","header_description":"","assets_banners_color":"","last_updated":"2016-06-30 10:56:39","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/alessandrotesoro.me","header_author_uri":"http:\/\/alessandrotesoro.me","rating":0,"author_block_rating":0,"active_installs":0,"downloads":598,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1445754","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1445753","resolution":"2","location":"assets"}},"screenshots":{"1":"json output example from the api.","2":"Option to set downloads as add-ons."}},"plugin_section":[],"plugin_tags":[5484,2665,73968,2299,23853],"plugin_category":[45],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-49362","plugin","type-plugin","status-closed","hentry","plugin_tags-easy-digital-downloads","plugin_tags-edd","plugin_tags-freemium-addons","plugin_tags-rest","plugin_tags-rest-api","plugin_category-ecommerce","plugin_committers-alessandrotesoro"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-edd-addons-api.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-edd-addons-api\/assets\/screenshot-1.png?rev=1445754","caption":"json output example from the api."},{"src":"https:\/\/ps.w.org\/wp-edd-addons-api\/assets\/screenshot-2.png?rev=1445753","caption":"Option to set downloads as add-ons."}],"raw_content":"<!--section=description-->\n<p>This is a plugin built specifically for developers that use Easy Digital Downloads to sell add-ons for freemium WordPress plugins.<\/p>\n <p>It's often the case that freemium plugins have an \"add-ons\" page within the wp-admin panel that shows a list of all add-ons available for a plugin. In most cases the list is retrieved from an RSS or json feed.<\/p>\n <p>WP EDD Addons API provides an easy way to mark EDD products as \"add-ons\" and exposes all of them through a new route within the WordPress REST API without the need to manually code the feed.<\/p>\n <p>Once installed, all products marked as add-ons are available through the <code>wp-json\/wp\/v2\/edd-addons<\/code> route.<\/p>\n <p>Example:     http:\/\/example.com\/wp-json\/wp\/v2\/edd-addons<\/p>\n <h4>Some info for developers<\/h4>\n <ul>\n<li>All add-ons are cached into the <code>wp_edd_addons_api_cached<\/code> transient. The transient is deleted each time a download is updated or created.<\/li>\n<li>You can modify the query $args for the REST API through the filter <code>wp_edd_addons_api_query<\/code>.<\/li>\n<li>I've also built an example of class to build the add-ons page within a plugin, you can find it here <a href=\"https:\/\/github.com\/alessandrotesoro\/wp-edd-addons-page\">https:\/\/github.com\/alessandrotesoro\/wp-edd-addons-page<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ul>\n<li>Install the WP REST API plugin first.<\/li>\n<li>Install the plugin like any other WP plugin.<\/li>\n<li>Create or edit a download and enable the option \"Set this product as an addon\".<\/li>\n<\/ul>\n <p>All products marked as add-ons are available through the <code>wp-json\/wp\/v2\/edd-addons<\/code> route.<\/p>\n <p>Example:     http:\/\/example.com\/wp-json\/wp\/v2\/edd-addons<\/p>\n\n<!--section=faq-->\n<p>None yet.<\/p>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n <p>Just released ;)<\/p>","raw_excerpt":"Provides the API required to expose EDD products marked as add-ons through the REST API.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/49362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=49362"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/alessandrotesoro"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=49362"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=49362"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=49362"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=49362"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=49362"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=49362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}