Created
October 19, 2015 21:29
-
-
Save anonymous/5f401192b236f8daaf1c to your computer and use it in GitHub Desktop.
Sensei - Tag Courses
This file contains hidden or 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
| // 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