public/wordpress/wp-content/plugins/wp-courseware/includes/models/course.php
/**
	 * Enroll Course Author.
	 *
	 * @since 4.4.0
	 *
	 * @return bool True on successfull enrollment. False otherwise.
	 */
Enroll Course Author.

@return bool True on successfull enrollment. False otherwise.
Enroll Course Author . @return bool True on successfull enrollment . False otherwise .
public function maybe_enroll_author() {
		if ( ! $this->can_user_access( absint( $this->get_course_author() ) ) ) {
			wpcw()->enrollment->enroll_student( $this->get_course_author(), array( $this->get_id() ), 'add', true );
		}
	}
public function maybe_enroll_author ( ) { if ( ! $ this -> can_user_access ( absint ( $ this -> get_course_author ( ) ) ) ) { wpcw ( ) -> enrollment -> enroll_student ( $ this -> get_course_author ( ) , array ( $ this -> get_id ( ) ) , 'add' , true ) ; } }
Enroll Course Author.
Enroll Course Author .