dozent_curriculum_locked_content( null $curriculum = null, null $locked_message = null, bool $echo = true )
Curriculum locked content
Description
This function use to lock the curriculum content for the various reason, it will return the lock message with html format data
Example usage:
dozent_curriculum_locked_content();
See also
Parameters
- $curriculum
-
(null) (Optional)
Default value: null
- $locked_message
-
(null) (Optional)
Default value: null
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_curriculum_locked_content( $curriculum = null, $locked_message = null, $echo = true ) { $post = get_post( $curriculum ); ob_start(); dozent_load_template( 'single/curriculum_locked_content', compact( 'post', 'locked_message' ) ); $output = apply_filters( 'single/curriculum_locked_content', ob_get_clean(), $post, $locked_message ); if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |