learndash_template_url_from_path( string $filepath = '' )
Utility function to accept a file path and swap it out for a URL.
Description Description
This function is used in combination with get_template() to take a local file system path and filename and replace the beginning part matching ABSPATH with the home URL.
Parameters Parameters
- $filepath
-
(Optional) The file path and filename.
Default value: ''
Return Return
(string) The URL to the template file.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.4.2 | Introduced. |