Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2015 21:29
Show Gist options
  • Select an option

  • Save anonymous/5f401192b236f8daaf1c to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5f401192b236f8daaf1c to your computer and use it in GitHub Desktop.
Sensei - Tag Courses
// Sensei - Add tags to Courses
// Run this after "register_post_type( 'course'..." in "class-woothemes-sensei-posttypes.php"
register_taxonomy(
'course_tag',
'course',
array(
'hierarchical' => false,
'label' => __( 'Tags', CURRENT_THEME ),
'singular_name' => __( 'Tag', CURRENT_THEME ),
'rewrite' => true,
'query_var' => true
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment