Skip to content

Instantly share code, notes, and snippets.

@nayeemch
Created October 5, 2020 20:34
Show Gist options
  • Save nayeemch/e7f009d936c28e50e57e26547dc2b804 to your computer and use it in GitHub Desktop.
Save nayeemch/e7f009d936c28e50e57e26547dc2b804 to your computer and use it in GitHub Desktop.
Change Primary/Main author
function tutor_primary_author() {
if ( function_exists('tutor')) {
$tutor_post_type = tutor()->course_post_type;
add_post_type_support( $tutor_post_type, 'author' );
}
}
add_action('init', 'tutor_primary_author', 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment