Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Last active October 11, 2015 10:17
Show Gist options
  • Save bryceadams/3843548 to your computer and use it in GitHub Desktop.
Save bryceadams/3843548 to your computer and use it in GitHub Desktop.
Custom Download Templates Filter
<?php
/**
* Allow Custom Post Templates for Downloads (in Easy Digital Downloads)
**/
function my_cpt_post_types( $post_types ) {
$post_types[] = 'download';
return $post_types;
}
add_filter( 'cpt_post_types', 'my_cpt_post_types' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment