Skip to content

Instantly share code, notes, and snippets.

@th3d0g
Forked from anonymous/gist:5f401192b236f8daaf1c
Last active October 19, 2015 21:30
Show Gist options
  • Save th3d0g/6cd57c6d0badc5772480 to your computer and use it in GitHub Desktop.
Save th3d0g/6cd57c6d0badc5772480 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