A filter for content sources to hook into to in order to define the directory 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 a base directory path for a source, use the following code:
<?php add_filter( 'slidedeck_get_source_file_basedir', 'my_function_name', 10, 2 ); ?>
The slidedeck_get_source_file_basedir filter receives two parameters:
(string) The base directory 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 root relative directory path to the SlideDeck source's location
Located In File: