LLMS_Shortcode_My_Achievements::get_output()
Retrieve the actual content of the shortcode
Description Description
$atts & $content are both filtered before being passed to get_output() output is filtered so the return of get_output() doesn’t need its own filter
Return Return
(string)
Source Source
File: includes/shortcodes/class.llms.shortcode.my.achievements.php
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | protected function get_output() { if ( ! $this ->get_attribute( 'user_id' ) ) { return '' ; } $student = llms_get_student( $this ->get_attribute( 'user_id' ) ); if ( ! $student ) { return '' ; } $course = new LLMS_Course( $this ->get_attribute( 'course_id' ) ); ob_start(); lifterlms_template_achievements_loop( $student , $this ->get_attribute( 'count' ), $this ->get_attribute( 'columns' ) ); return ob_get_clean(); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.1 | Introduced. |