{"id":85342,"date":"2018-05-05T14:55:21","date_gmt":"2018-05-05T14:55:21","guid":{"rendered":"https:\/\/en-gb.wordpress.org\/plugins\/edd-mark-as-add-on\/"},"modified":"2018-05-05T16:20:23","modified_gmt":"2018-05-05T16:20:23","slug":"edd-mark-as-add-on","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/edd-mark-as-add-on\/","author":13722774,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"4.9.29","requires":"4.3","requires_php":"","requires_plugins":"","header_name":"EDD Mark as add-on","header_author":"Alessandro Tesoro","header_description":"Mark EDD Products as addons and expose them through the REST API. Useful for fremium WordPress plugins.","assets_banners_color":"","last_updated":"2018-05-05 16:20:23","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/alessandrotesoro\/wp-user-manager\/","header_author_uri":"http:\/\/alessandrotesoro.me","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1164,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[5484,2665,73968,2299,23853],"plugin_category":[45],"plugin_contributors":[80433],"plugin_business_model":[],"class_list":["post-85342","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_contributors-alessandrotesoro","plugin_committers-alessandrotesoro"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/edd-mark-as-add-on.svg","icon_2x":false,"generated":true},"screenshots":[],"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\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\n<p>EDD Mark As Addon 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\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\n<p>Example:\n    http:\/\/example.com\/wp-json\/wp\/v2\/edd-addons<\/p>\n\n<h4>Some info for developers<\/h4>\n\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<\/ul>\n\n<!--section=installation-->\n<ul>\n<li>Install the plugin like any other WP plugin.<\/li>\n<li>Create or edit a download and enable the option \"Mark download as add-on and expose in rest api.\".<\/li>\n<\/ul>\n\n<p>All products marked as add-ons are available through the <code>wp-json\/wp\/v2\/edd-addons<\/code> route.<\/p>\n\n<p>Example:\n    http:\/\/example.com\/wp-json\/wp\/v2\/edd-addons<\/p>\n\n<!--section=faq-->\n<p>None yet.<\/p>\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ul>\n<li>Install the plugin like any other WP plugin.<\/li>\n<li>Create or edit a download and enable the option \"Mark download as add-on and expose in rest api.\".<\/li>\n<\/ul>\n\n<p>All products marked as add-ons are available through the <code>wp-json\/wp\/v2\/edd-addons<\/code> route.<\/p>\n\n<p>Example:\n    http:\/\/example.com\/wp-json\/wp\/v2\/edd-addons<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\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\/85342","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=85342"}],"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=85342"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=85342"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=85342"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=85342"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=85342"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=85342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}