Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codehooligans/f6efc171badb4fa11ba4 to your computer and use it in GitHub Desktop.
Save codehooligans/f6efc171badb4fa11ba4 to your computer and use it in GitHub Desktop.
Codehooligans.com: Register Taxonomy for Product Packages Version 1
<?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