Created
May 19, 2021 06:19
-
-
Save tdmrhn/d856a461df6f27ec0745e7084a949a98 to your computer and use it in GitHub Desktop.
Activate Category for Pages
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 | |
function activate_category_page() { | |
// register_taxonomy_for_object_type('post_tag', 'page'); | |
register_taxonomy_for_object_type('category', 'page'); | |
} | |
add_action( 'init', 'activate_category_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment