dozent_get_course_author( null $course = null )
Get the course author by course | post | global post | post object
Description
Course author means who created the course, not added as instructor.
Example usage:
$course_author dozent_get_course_author( $course );
Parameters
- $course
-
(null) (Optional)
Default value: null
Return
(bool|WP_User|null)
Source
File: includes/core-functions.php
function dozent_get_course_author( $course = null ) { $course = get_post( $course ); if ( ! empty( $course->post_author ) ) { return get_userdata( $course->post_author ); } return null; }