Last active
October 11, 2015 10:17
-
-
Save bryceadams/3843548 to your computer and use it in GitHub Desktop.
Custom Download Templates Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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