Last active
August 29, 2015 14:13
-
-
Save codehooligans/f6efc171badb4fa11ba4 to your computer and use it in GitHub Desktop.
Codehooligans.com: Register Taxonomy for Product Packages Version 1
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 | |
add_action( 'init', 'product_init' ); | |
function product_init() | |
{ | |
register_taxonomy( 'product_packages', 'products', | |
array( 'hierarchical' => true, | |
'label' => __('Product Packages'), | |
'query_var' => false | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment