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: ''


Top ↑

Return Return

(string) The URL to the template file.


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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