Create a New Event and Set Category
-
Hi there
I use this to create an Event:
$event = tribe_events() ->set_args( [ 'title' => 'My Event Teston 25', 'start_date' => '+2 days 15:00:00', 'duration' => HOUR_IN_SECONDS, 'status' => 'draft', 'tax_input' => array( Tribe__Events__Main::TAXONOMY => array( 60 ), ), ] ) ->create();
The Category ID is right but the category is not set.
The event is created without Category.
Please help me, thanks in advance!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Create a New Event and Set Category’ is closed to new replies.