Hello Natasha,
Thanks for reaching out to us!
A colleague of mine whipped up the following little snippet for this:
function ce_set_default_author( $event_id ) {
remove_action( 'tribe_events_update_meta', 'ce_set_default_author' );
if ( 0 == get_post_field( 'post_author', $event_id ) ) {
wp_update_post( array(
'ID' => $event_id,
'post_author' => 123
) );
}
}
function ce_before_save() {
add_action( 'tribe_events_update_meta', 'ce_set_default_author' );
}
add_action( 'tribe_ce_before_event_submission_page', 'ce_before_save' );
where ‘123’ is the ID of the default author.
Please note, this code hasn’t been tested yet.
Give it a try and let me know if it works.
Cheers,
Andras