Created
August 14, 2017 13:56
-
-
Save rahularyan/17f013718e30a99322357f9084761d89 to your computer and use it in GitHub Desktop.
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 adding post catgeory to question CPT. | |
*/ | |
function my_ap_category_taxonomy_to_question() { | |
register_taxonomy_for_object_type( 'category', 'question' ); | |
} | |
add_action( 'init', 'my_ap_category_taxonomy_to_question' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment