{"id":54832,"date":"2017-02-28T12:09:35","date_gmt":"2017-02-28T12:09:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/convert-media-to-edd\/"},"modified":"2017-02-28T12:09:35","modified_gmt":"2017-02-28T12:09:35","slug":"convert-media-to-edd","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/convert-media-to-edd\/","author":14736348,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"4.7.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Convert Media to EDD","header_author":"WooNinjas","header_description":"","assets_banners_color":"c7c6c8","last_updated":"2017-02-28 12:09:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wooninjas.com","header_author_uri":"https:\/\/wooninjas.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1152,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1610745","resolution":"128x128","location":"assets","width":533,"height":533}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1632006","resolution":"772x250","location":"assets","width":2048,"height":675}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1610745","resolution":"1","location":"assets","width":145,"height":430},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1610745","resolution":"2","location":"assets","width":1286,"height":1532}},"screenshots":{"1":"The admin Menu that shows up once the plugin is installed and activated.","2":"The plugin page to convert images to EDD downloads."}},"plugin_section":[],"plugin_tags":[2264,16233,2665,84,702],"plugin_category":[45,50],"plugin_contributors":[145207,92712],"plugin_business_model":[],"class_list":["post-54832","plugin","type-plugin","status-publish","hentry","plugin_tags-attachment","plugin_tags-downloadable-products","plugin_tags-edd","plugin_tags-media","plugin_tags-products","plugin_category-ecommerce","plugin_category-media","plugin_contributors-rahilwazir","plugin_contributors-wooninjas","plugin_committers-wooninjas"],"banners":{"banner":"https:\/\/ps.w.org\/convert-media-to-edd\/assets\/banner-772x250.jpg?rev=1632006","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/convert-media-to-edd\/assets\/icon-128x128.jpg?rev=1610745","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/convert-media-to-edd\/assets\/screenshot-1.png?rev=1610745","caption":"The admin Menu that shows up once the plugin is installed and activated."},{"src":"https:\/\/ps.w.org\/convert-media-to-edd\/assets\/screenshot-2.png?rev=1610745","caption":"The plugin page to convert images to EDD downloads."}],"raw_content":"<!--section=description-->\n<p>This addon depends on Easy Digital Downloads, so It must be installed first before installing this addon. This addons enables the admin to select the images from media library which should be converted into EDD downloads. The addon offers more options to associate with the EDD downloads.<\/p>\n\n<p>A new menu is created after install by the name <strong>Convert Media to EDD<\/strong><\/p>\n\n<p>Plugin menu page has following fields:<\/p>\n\n<ul>\n<li>Description (full wysiwyg editor)<\/li>\n<li>Download categories<\/li>\n<li>Price<\/li>\n<li>Download Limit<\/li>\n<li>Download notes<\/li>\n<\/ul>\n\n<p>These fields are self explanatory and all fields are optional except the Media attachment field, which is required.<\/p>\n\n<p>There are two buttons on the plugin page execute and reset<\/p>\n\n<h4>Execute<\/h4>\n\n<p>Once clicked, it will send request to execute cron job immediately.\nAny errors before processing cron job (invalid nonce) will be displayed on top of the page as notice.\nAfter Cron successfully executed, the updated job status will be displayed on top of the page as notice.<\/p>\n\n<h4>Reset<\/h4>\n\n<p>This button is important when you want to run the cron job again and clear out the previous pending\/completed job.\nThe reset button will only be clickable when any previous job was scheduled.\nWhen you Reset the previous job, it's status entries (total\/processed\/status) will be removed (not the downloads that's been created), which is used to track running job.\nThis allows to schedule new job when clicked on Execute\nNote: When you Execute after Reset, the previous download posts will be preserved and the next Execute will just create new downloads.<\/p>\n\n<h4>Polling<\/h4>\n\n<p>On Frontend ajax polls every 2 seconds to find out the job status and update message on top of the page. Polling will only runs when job is running.<\/p>\n\n<h4>Cron Job<\/h4>\n\n<p>The job runs immediately on successful request from frontend.\nThe job keep track of the following field\/values to resume or notify job status in frontend.<\/p>\n\n<p><strong>Status<\/strong>: completed\/progress<\/p>\n\n<p><strong>Processed<\/strong>: number of images has been processed<\/p>\n\n<p><strong>Remaining<\/strong>: number of images remains to be processed<\/p>\n\n<p><strong>Total<\/strong>: total number of media library image items (jpg,png,gif)\nThe processed field is main key here to remember. As this required for resume and next batch of images to process.\nThe cron executes first 10 images from the media library and then pause for 1 second. (This prevents load on server) and the processed field is updated with image offset i.e. from 0 to 10. So on next iteration it will remember where to continue\/resume from.<\/p>\n\n<p><strong>Note<\/strong>: When site admin upload images to media library while job is running, it will update the total count the images on Media library and processed the new uploaded images as well.\nIf no images are found on given (total number of processed) offset, it will be assumed that the job is completed, because there are no more images found for further operation. (Status will be updated on frontend)<\/p>\n\n<h4>Logs<\/h4>\n\n<ul>\n<li>Log file is located in wp-content\/cmedd_cron\/cmedd.log<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>For an automatic installation through WordPress:<\/p>\n\n<p>Go to the 'Add New' plugins screen in your WordPress admin area\nSearch for 'Convert Media EDD'\nClick 'Install Now' and activate the plugin\n'Convert Media to EDD' admin menu will show up in dashboard.<\/p>\n\n<p>For a manual installation via FTP:<\/p>\n\n<p>Upload the 'Convert Media to EDD' directory to the '\/wp-content\/plugins\/' directory\nActivate the plugin through the 'Plugins' screen in your WordPress admin area\n'Convert Media to EDD' admin menu will show up in dashboard.<\/p>\n\n<p>To upload the plugin through WordPress, instead of FTP:<\/p>\n\n<p>Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.\nActivate the plugin through the 'Plugins' screen in your WordPress admin area\n'Convert Media to EDD' admin menu will show up in dashboard.<\/p>\n\n<p>Note: EDD Plugin must be installed first.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>","raw_excerpt":"This EDD addon converts the selected media library images to EDD downloads. It provides an easy way to convert media images in bulk to EDD.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/54832","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=54832"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wooninjas"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=54832"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=54832"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=54832"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=54832"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=54832"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=54832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}