Created
October 4, 2016 10:47
Star
You must be signed in to star a gist
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
This file contains 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
<?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