tribe_get_start_date shows the published date not the event date
-
I have this code to display start date of the event. But what I always get is the published date. I guess there’s something wrong on the tribe_get_start_date, but I don’t know what is it. Any help is very much appreciated.
function tribe_add_date_to_order_title( $title, $item ) { $event = tribe_events_get_ticket_event( $item['product_id'] ); if ( $event !== false ) { $title .= ' - ' . tribe_get_start_date( $event ); } return $title; } add_filter( 'woocommerce_order_item_name', 'tribe_add_date_to_order_title', 100, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘tribe_get_start_date shows the published date not the event date’ is closed to new replies.