ssp_build_files
How to use: add_filter()
Included in: Simply Static Pro 1.6.1+
Overview
The ssp_build_files filter extends the list of files included in a Build programmatically. This is useful if you want to perform custom actions (like finding a list of related files) to be included automatically.
Make sure to pass an absolute path and NOT a URL to the file.
Example
The following code snippet adds a file to the list of URLs in a build:
add_filter('ssp_build_urls', function( $files ) {
$files[] = WP_CONTENT_DIR . '/uploads/2025/01/some-image.png';
return $files;
});