learndash_get_template_part( string $filepath, array|null $args = null, boolean $echo = false )
Gets the template Part.
Description #
Function to facilitate including sub-templates.
Parameters #
- $filepath
-
(string) (Required) The path to the template file to include.
- $args
-
(<span class="array">array|null) (Optional) Any variables to pass along to the template.
Default value: null
- $echo
-
(boolean) (Optional) Whether to print or return the template output. Default is false.
Default value: false
Return #
(($echo) is false ? string : void )
Source #
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |