dozent_course_review_modal_link( int $course_ID, bool $echo = true )
show course review modal link
Description
When click this link, a modal will be open to write or edit the review. You must need to call dozent_course_review_modal(); function, so the link will be able to open the modal
dozent_course_review_modal_link();
See also
Parameters
- $course_ID
-
(int) (Required)
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|string|void)
Source
File: includes/template-functions.php
function dozent_course_review_modal_link( $course_ID = 0, $echo = true ) { $course_ID = dozent_get_post_id( $course_ID ); ob_start(); $output = ''; if ( is_user_logged_in() ) { dozent_load_template( 'global.course-review-modal-link', compact( 'course_ID' ) ); $output = apply_filters( 'dozent.global.course-review-modal-link', ob_get_clean(), $course_ID ); } if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |