{"id":27422,"date":"2014-01-23T02:32:53","date_gmt":"2014-01-23T02:32:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/edd-list-file-names\/"},"modified":"2014-02-22T00:17:26","modified_gmt":"2014-02-22T00:17:26","slug":"edd-list-file-names","status":"publish","type":"plugin","link":"https:\/\/haz.wordpress.org\/plugins\/edd-list-file-names\/","author":10539184,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Easy Digital Downloads - List File Names","header_author":"Andrew Munro, Sumobi","header_description":"","assets_banners_color":"2361a0","last_updated":"2014-02-22 00:17:26","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=EFUPMPEZPGW7L","header_plugin_uri":"http:\/\/sumobi.com\/shop\/edd-list-file-names\/","header_author_uri":"http:\/\/sumobi.com\/","rating":5,"author_block_rating":0,"active_installs":50,"downloads":4337,"num_ratings":2,"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":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"843544","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5346,888,25502,5484,2665],"plugin_category":[45],"plugin_contributors":[78291],"plugin_business_model":[],"class_list":["post-27422","plugin","type-plugin","status-publish","hentry","plugin_tags-digital-downloads","plugin_tags-e-commerce","plugin_tags-e-downloads","plugin_tags-easy-digital-downloads","plugin_tags-edd","plugin_category-ecommerce","plugin_contributors-sumobi","plugin_committers-cklosows","plugin_committers-nosegraze","plugin_committers-smub","plugin_committers-sumobi","plugin_support_reps-dgoldak","plugin_support_reps-misulicus"],"banners":{"banner":"https:\/\/ps.w.org\/edd-list-file-names\/assets\/banner-772x250.png?rev=843544","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/edd-list-file-names_2361a0.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin requires <a href=\"http:\/\/wordpress.org\/extend\/plugins\/easy-digital-downloads\/\" title=\"Easy Digital Downloads\">Easy Digital Downloads<\/a>.<\/p>\n\n<p>Using the included <code>[edd_file_names]<\/code> shortcode you'll be able to list a download's file names (not file paths). This is useful for showing customers what is included when they purchase your product. The shortcode also takes 2 parameters, title and ID. Using the ID you're able to show a download's file names from another post\/page\/download.<\/p>\n\n<p><strong>Shortcode usage<\/strong><\/p>\n\n<p>Basic listing of the current download in an ordered list<\/p>\n\n<pre><code>[edd_file_names]\n<\/code><\/pre>\n\n<p>Custom title above the list<\/p>\n\n<pre><code>[edd_file_names title=\"Files Included\"]\n<\/code><\/pre>\n\n<p>Show the download's files by using it's ID. Useful when you are also using the [purchase_link] shortcode on another page\/post<\/p>\n\n<pre><code>[edd_file_names id=\"123\" title=\"Another download's files\"]\n<\/code><\/pre>\n\n<p><strong>Modifying the HTML markup<\/strong><\/p>\n\n<p>This example shows how you can modify the HTML markup. Heading has been replaced with an <code>&lt;h1&gt;<\/code> tag, and the list is now an unordered list. Copy and paste the following function into your child theme's functions.php or a custom plugin:<\/p>\n\n<pre><code>function sumobi_edd_list_file_names( $html, $title, $download_files ) { \n    ob_start();\n    if ( $download_files &amp;&amp; is_array( $download_files ) ) : ?&gt;\n\n        &lt;?php if ( $title ) : ?&gt;\n        &lt;h1&gt;&lt;?php echo $title; ?&gt;&lt;\/h1&gt;\n        &lt;?php endif; ?&gt;\n\n        &lt;ul class=\"edd-file-names\"&gt;\n        &lt;?php foreach ( $download_files as $file ) : ?&gt;\n            &lt;li&gt;&lt;?php echo $file['name']; ?&gt;&lt;\/li&gt;\n        &lt;?php endforeach; ?&gt;\n        &lt;\/ul&gt;\n\n    &lt;?php endif;\n\n    $html = ob_get_clean();\n    return $html;\n}\nadd_filter( 'edd_list_file_names', 'sumobi_edd_list_file_names', 10, 3 );\n<\/code><\/pre>\n\n<p><strong>Extensions for Easy Digital Downloads<\/strong><\/p>\n\n<p><a href=\"https:\/\/easydigitaldownloads.com\/extensions\/?ref=166\" title=\"Plugins for Easy Digital Downloads\">https:\/\/easydigitaldownloads.com\/extensions\/<\/a><\/p>\n\n<p><strong>Tips for Easy Digital Downloads<\/strong><\/p>\n\n<p><a href=\"http:\/\/sumobi.com\/blog\" title=\"Tips for Easy Digital Downloads\">http:\/\/sumobi.com\/blog<\/a><\/p>\n\n<p><strong>Stay up to date<\/strong><\/p>\n\n<p><em>Follow me on Twitter<\/em> \n<a href=\"http:\/\/twitter.com\/sumobi_\" title=\"Twitter\">http:\/\/twitter.com\/sumobi_<\/a><\/p>\n\n<p><em>Become a fan on Facebook<\/em> \n<a href=\"http:\/\/www.facebook.com\/sumobicom\" title=\"Facebook\">http:\/\/www.facebook.com\/sumobicom<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unpack the entire contents of this plugin zip file into your <code>wp-content\/plugins\/<\/code> folder locally<\/li>\n<li>Upload to your site<\/li>\n<li>Navigate to <code>wp-admin\/plugins.php<\/code> on your site (your WP Admin plugin page)<\/li>\n<li>Activate this plugin<\/li>\n<\/ol>\n\n<p>OR you can just install it with WordPress by going to Plugins &gt;&gt; Add New &gt;&gt; and type this plugin's name<\/p>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>New: Added edd-file-names CSS class on ordered list for easier styling<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Shows a simple list of the download&#039;s files with a shortcode","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27422"}],"author":[{"embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sumobi"}],"wp:attachment":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27422"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27422"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27422"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27422"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27422"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}