A filter for content sources to hook into to in order to define the URL path of any files associated with that source. This filter is automatically hooked into by any content source PHP Class that extends the SlideDeck parent PHP Class.
To hook into this filter manually to define an URL path for a source, use the following code:
<?php add_filter( 'slidedeck_get_source_file_urlpath', 'my_function_name', 10, 2 ); ?>
The slidedeck_get_source_file_urlpath filter receives two parameters:
(string) The URL path for the source being loaded (empty string by default)
(string) The slug of the SlideDeck source being loaded. This is passed the $name property of the SlideDeck source PHP Class.
Return a string value with a properly formatted, complete URL path to the SlideDeck source's location
Located In File: