llms_get_template( string $template_name, array $args = array(), string $template_path = '', string $default_path = '' )
Get Template Part
Description #Description
Parameters #Parameters
- $template_name
-
(string) (Required) [name of template]
- $args
-
(array) (Optional) [array of pst args]
Default value: array()
- $template_path
-
(string) (Optional) [file path to template]
Default value: ''
- $default_path
-
(string) (Optional) [default file path]
Default value: ''
Return #Return
(void)
Source #Source
File: includes/functions/llms.functions.template.php
function llms_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) { if ( $args && is_array( $args ) ) { extract( $args ); } $located = llms_locate_template( $template_name, $template_path, $default_path ); do_action( 'lifterlms_before_template_part', $template_name, $template_path, $located, $args ); if ( file_exists( $located ) ) { include( $located ); } do_action( 'lifterlms_after_template_part', $template_name, $template_path, $located, $args ); }
Expand full source code Collapse full source code View on GitHub
Changelog #Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Related #Related
Uses #Uses
Uses | Description |
---|---|
includes/functions/llms.functions.template.php: llms_locate_template() |
Locate Template |
Used By #Used By
Used By | Description |
---|---|
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.memberships.php: LLMS_Admin_Reporting_Tab_Memberships::output() |
Output tab content. |
includes/class.llms.student.dashboard.php: LLMS_Student_Dashboard::output_edit_account_content() |
Callback to output the edit account content |
includes/class.llms.student.dashboard.php: LLMS_Student_Dashboard::output_orders_content() |
Endpoint to output orders content |
includes/class.llms.student.dashboard.php: LLMS_Student_Dashboard::output_redeem_voucher_content() |
Callback to output content for the voucher endpoint |
includes/llms.template.functions.php: llms_get_login_form() | |
includes/llms.template.functions.php: get_available_payment_options() |
Get available payment gateway options Get’s available payment gateways options IE: single, recurring |
includes/llms.template.functions.php: lifterlms_output_content_wrapper() | |
includes/llms.template.functions.php: lifterlms_output_content_wrapper_end() | |
includes/llms.template.functions.php: lifterlms_get_sidebar() | |
includes/llms.template.functions.php: lifterlms_template_course_author() | |
includes/llms.template.functions.php: lifterlms_template_single_parent_course() | |
includes/llms.template.functions.php: lifterlms_template_complete_lesson_link() | |
includes/llms.template.functions.php: lifterlms_template_lesson_navigation() | |
includes/llms.template.functions.php: lifterlms_template_single_membership_title() | |
includes/llms.template.functions.php: lifterlms_get_content() | |
includes/llms.template.functions.php: lifterlms_template_single_lesson_audio() | |
includes/llms.template.functions.php: lifterlms_template_single_difficulty() | |
includes/llms.template.functions.php: lifterlms_template_single_prerequisites() | |
includes/llms.template.functions.php: lifterlms_template_single_syllabus() | |
includes/llms.template.functions.php: lifterlms_template_single_course_tags() | |
includes/llms.template.functions.php: lifterlms_template_single_course_tracks() | |
includes/llms.template.functions.php: lifterlms_template_single_video() | |
includes/llms.template.functions.php: lifterlms_template_single_lesson_video() | |
includes/llms.template.functions.php: lifterlms_template_single_audio() | |
includes/llms.template.functions.php: lifterlms_template_single_meta_wrapper_start() | |
includes/llms.template.functions.php: lifterlms_template_single_meta_wrapper_end() | |
includes/llms.template.functions.php: lifterlms_template_single_length() | |
includes/llms.template.functions.php: lifterlms_template_single_course_categories() | |
includes/llms.template.functions.php: lifterlms_template_single_title() | |
includes/llms.template.functions.php: lifterlms_template_single_short_description() | |
includes/llms.template.functions.php: lifterlms_template_single_course_content() | |
includes/llms.template.functions.php: lifterlms_template_single_full_description() | |
includes/llms.template.functions.php: lifterlms_template_single_membership_full_description() | |
includes/llms.template.functions.php: lifterlms_template_single_course_progress() | |
includes/llms.template.functions.php: llms_email_footer() | |
includes/llms.template.functions.php: llms_email_header() | |
includes/achievements/class.llms.achievement.user.php: LLMS_Achievement_User::get_content_html() |
Gets post content and replaces merge fields with user meta-data |
includes/abstracts/llms.abstract.notification.view.php: LLMS_Abstract_Notification_View::get_basic_html() |
Get the html for a basic notification |
includes/functions/llms.functions.notice.php: llms_get_notices() |
Gets messages and errors which are stored in the session, then clears them. |
includes/functions/llms.functions.notice.php: llms_print_notice() |
Prints a single notice |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_memberships() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_notifications() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_navigation() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_home() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_header() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_achievements() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_certificates() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_courses() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_grades() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_grades_table() |
Output the template for a single grades table on the student dashboard |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_difficulty() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_enroll_date() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_enroll_status() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_length() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_thumbnail() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_view_link() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_student_dashboard() |
Output the LifterLMS Student Dashboard |
includes/functions/llms.functions.templates.loop.php: lifterlms_loop_start() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_author() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_loop() |
Output a LifterLMS Loop |
includes/functions/llms.functions.templates.loop.php: lifterlms_loop_end() | |
includes/functions/llms.functions.template.php: llms_get_template_ajax() | |
includes/functions/llms.functions.templates.certificates.php: llms_get_certificate_preview() |
Get the content of a single certificates |
includes/functions/llms.functions.templates.certificates.php: lifterlms_template_certificates_loop() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_trial() | |
includes/functions/llms.functions.templates.pricing.table.php: lifterlms_template_pricing_table() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_button() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_description() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_feature() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_pricing() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_restrictions() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_title() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_return_link() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_wrapper_end() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_wrapper_start() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_start_button() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_wrapper_start() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_meta_info() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_attempt_results() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_attempt_results_questions_list() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_results() | |
includes/functions/llms.functions.templates.achievements.php: lifterlms_template_achievements_loop() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_content() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_description() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_image() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_video() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_wrapper_end() | |
includes/functions/llms.functions.templates.achievements.php: llms_get_achievement() |
Get the content of a single achievement |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::remove_coupon_code() |
Remove a coupon from an order during checkout |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::validate_coupon_code() |
Validate a Coupon via the Checkout Form |
includes/shortcodes/class.llms.shortcode.course.outline.php: LLMS_Shortcode_Course_Outline::get_output() |
Retrieve the actual content of the shortcode |
includes/shortcodes/class.llms.shortcode.checkout.php: LLMS_Shortcode_Checkout::checkout() |
Renders the checkout template |
includes/shortcodes/class.llms.shortcode.checkout.php: LLMS_Shortcode_Checkout::confirm_payment() |
Renders the confirm payment checkout template |
includes/shortcodes/class.llms.shortcodes.php: LLMS_Shortcodes::memberships() |
Memberships Shortcode Used for shortcode [lifterlms_memberships] |
includes/shortcodes/class.llms.shortcode.my.account.php: LLMS_Shortcode_My_Account::lost_password() |
Lost password template |
includes/admin/settings/class.llms.settings.general.php: LLMS_Settings_General::get_stats_widgets() | |
includes/admin/reporting/class.llms.admin.reporting.php: LLMS_Admin_Reporting::output() |
Output the reporting screen html |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.sales.php: LLMS_Admin_Reporting_Tab_Sales::output_filters() |
Output filters navigation |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.students.php: LLMS_Admin_Reporting_Tab_Students::output() |
Output HTML for the current view within the students tab |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.sales.php: LLMS_Admin_Reporting_Tab_Sales::output() |
Output the template for the sales tab |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.courses.php: LLMS_Admin_Reporting_Tab_Courses::output() |
Output tab content |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.enrollments.php: LLMS_Admin_Reporting_Tab_Enrollments::output() |
Output the template for the sales tab |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.enrollments.php: LLMS_Admin_Reporting_Tab_Enrollments::output_filters() |
Output filters navigation |
includes/admin/class.llms.admin.notices.php: LLMS_Admin_Notices::output_notice() |
Output a single notice by ID |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.quizzes.php: LLMS_Admin_Reporting_Tab_Quizzes::output() |
Output tab content |
includes/admin/post-types/meta-boxes/class.llms.meta.box.students.php: LLMS_Meta_Box_Students::output() |
Custom metabox output function |
includes/admin/post-types/meta-boxes/class.llms.meta.box.order.transactions.php: LLMS_Meta_Box_Order_Transactions::output() |
Function to field WP::output() method call Passes output instruction to parent |
includes/admin/post-types/meta-boxes/class.llms.meta.box.order.details.php: LLMS_Meta_Box_Order_Details::output() |
Function to field WP::output() method call Passes output instruction to parent |
includes/admin/class.llms.admin.user.custom.fields.php: LLMS_Admin_User_Custom_Fields::output_custom_fields() |
Output custom field data fields as HTML inputs |
includes/admin/class.llms.admin.import.php: LLMS_Admin_Import::output() |
Handle HTML output on the screen |
includes/emails/class.llms.email.php: LLMS_Email::get_content_html() |
Get the HTML email content |
includes/emails/class.llms.email.reset.password.php: LLMS_Email_Reset_Password::get_body_content() |
Custom content for the password reset email |
includes/certificates/class.llms.certificate.user.php: LLMS_Certificate_User::get_content_html() |
get_content_html function. |
User Contributed Notes #User Contributed Notes
Permalink: