Technical Docs

Search Documentation

Function: tribe_resource_url

Returns or echoes a url to a file in the Events Calendar plugin resources directory

Located at src/functions/template-tags/general.php (Line: 81)

Parameters summary

(string) $resource the filename of the resource
(bool) $echo whether or not to echo the url
(string) $root_dir directory to hunt for resource files (null or the actual path)
(object) $origin Which plugin we are dealing with

Return value summary



string tribe_resource_url ( string $resource, bool $echo = false, string $root_dir = null, object $origin = null )