dozent_course_access_gate( null $course = null, bool $echo = true )
Course Access Gate
Description
Usually it’s button with various type of condition. right now it’s not available for template override. But you can filter it with ‘dozent/course/access_gate’ Filter hook
See also
Parameters
- $course
-
(null) (Optional)
Default value: null
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_course_access_gate( $course = null, $echo = true ) { ob_start(); include_once DOZENT_ABSPATH . 'views/course-access-gate.php'; /** * Filter the course Access gate, usually its button wrap * * @since DozentLMS 1.0.0 */ $output = apply_filters( 'dozent/course/access_gate', ob_get_clean(), $course ); if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |