Last active
November 25, 2017 19:39
-
-
Save cre8tivediva/99e600e127aa6bce143956c695972da0 to your computer and use it in GitHub Desktop.
Add Comments to Portfolio Post Type
This file contains hidden or 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
// Add Comments to Portfolio Custom Post Type (https://codex.wordpress.org/Function_Reference/add_post_type_support) | |
function add_comments_portfolio() { | |
add_post_type_support( 'portfolio', 'comments' ); | |
} | |
add_action( 'init', 'add_comments_portfolio', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment