ssp_config_dir

How to use: add_filter()

Included in: Simply Static Pro 1.6.3+

Overview

The ssp_config_dir filter lets you modify the directory where Simply Static Pro is looking for config files. It uses JSON config files for various features of your static site, such as:

  • forms.json for the forms integration
  • search-index.json for the search integration
  • complianz.json for the cookie consent integration

Example

The following code snippet let's you modify the path for config files:

add_filter('ssp_config_dir', function(  $config_dir ) {
    // Change the path where Simply Static Pro looks for config files
    return get_template_directory() . '/simply-static/configs/';
});