Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The Events Calendar: enable Author metabox support for Organizer and/or Venue post types. Can come in handy for a site admin to change ownership of data created via Community Events
<?php
/**
* The Events Calendar: enable Author metabox support for Organizer and/or Venue post types
* Can come in handy for a site admin to change ownership of data created via Community Events
*
* From https://gist.github.com/cliffordp/24d4ca37f86212ed56a2e8021214d18c
*
* @param array $args
* @return array
*/
function tribe_enable_authors_metabox( $args ) {
$args['supports'][] = 'author';
return $args;
}
add_filter( 'tribe_events_register_organizer_type_args', 'tribe_enable_authors_metabox' );
add_filter( 'tribe_events_register_venue_type_args', 'tribe_enable_authors_metabox' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment