learndash_template_url_from_path

learndash_template_url_from_path( string $filepath = '' )

Utility function to accept a file path and swap it out for a URL.


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 #

$filepath

(string) (Optional) The file path and filename.

Default value: ''


Return #

(string) The URL to the template file.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.4.2 Introduced.