lp_dynamic_title = 'Course Author Name'; $this->lp_dynamic_name = 'course-author-name'; parent::__construct( $data ); } /** * Render dynamic course author name elementor. * * @return void */ public function render() { $singleInstructorTemplate = SingleInstructorTemplate::instance(); try { $course = $this->get_course_model(); if ( ! $course ) { return; } $author = $course->get_author_model(); if ( ! $author ) { return; } echo $singleInstructorTemplate->html_display_name( $author ); } catch ( \Throwable $e ) { error_log( $e->getMessage() ); } } }