ssp_clear_repository

How to use: add_filter()

Included in: Simply Static Pro 1.7.3+


The Simply Static GitHub integration does not clear a repository before deployment, it only updates the files by comparing the SHA values of the content.

If you would like to clear the repository defined in the GitHub deployment integration before running a new export you can set the "ssp_clear_repository" to return true.

Below is a code snippet to clear the GitHub repository defined in your Simply Static settings:

add_filter('ssp_clear_repository', '__return_true' );

You can add this to the functions.php of your child theme or use the Code Snippets plugin to add it.