learndash_get_template_part( string $filepath, array $args = null, boolean $echo = false )

Gets the template Part.


Description Description

Function to facilitate including sub-templates.


Parameters Parameters

$filepath

(Required) The path to the template file to include.

$args

(Optional) Any variables to pass along to the template.

Default value: null

$echo

(Optional) Whether to print or return the template output.

Default value: false


Top ↑

Return Return

(string|void) If the echo is false, string with markup returned.


Top ↑

Source Source

File: themes/ld30/includes/helpers.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.