Created
January 25, 2016 15:37
-
-
Save jesseeproductions/b599f873ec03f6592e01 to your computer and use it in GitHub Desktop.
Event Tickets Plus - Add Ticket Category for Ticket Products in WooCommerce
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
/** | |
* Event Tickets Plus - Add Ticket Category for Ticket Products in WooCommerce | |
* | |
* | |
*/ | |
add_filter( 'wootickets_after_save_ticket', 'tribe_add_category_to_woocommerce_tickets' ); | |
function tribe_add_category_to_woocommerce_tickets( $event_id ) { | |
wp_set_object_terms( $event_id, 'Ticket', 'product_cat', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment