Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created May 24, 2012 01:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pippinsplugins/2778958 to your computer and use it in GitHub Desktop.
Save pippinsplugins/2778958 to your computer and use it in GitHub Desktop.
Adds support for comments to the "Downloads" post type
<?php
function modify_edd_product_supports($supports) {
$supports[] = 'comments';
return $supports;
}
add_filter('edd_download_supports', 'modify_edd_product_supports');
@DestructiveBurn
Copy link

The plugin activates but does not show the comment box in any of the Easy Digital Downloads pages. Please fix this.

@R3dy
Copy link

R3dy commented Mar 26, 2018

Pasting this into any functions.php file will break your WP. Should Remove the <?php on line 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment