ssp_build_urls

How to use: add_filter()

Included in: Simply Static Pro 1.6.1+

Overview

The ssp_build_urls filter allows you to extend the URLs included in a Build programmatically. This is useful if you want to perform custom actions (like finding a list of related URLs) to be included automatically.

Example

The following code snippet adds a URL to the list of URLs in a build:

add_filter('ssp_build_urls', function(  $urls ) {
    $urls[] = 'https://www.example.com';
    return $urls;
});