Created
February 11, 2019 14:27
-
-
Save vicskf/bf1278e3619083bd19018a1681a7b548 to your computer and use it in GitHub Desktop.
TEC > Add support for author metabox in organizer post type
This file contains hidden or 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 | |
/** | |
* Enable author support for organizer posts. | |
* | |
* @param array $args | |
* @return array | |
*/ | |
function tribe_organizers_author_support( $args ) { | |
$args['supports'][] = 'author'; | |
return $args; | |
} | |
add_filter( 'tribe_events_register_organizer_type_args', 'tribe_organizers_author_support' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment