Created
June 23, 2021 19:17
-
-
Save patrickposner/c860c9d778c4fda5a35652c0b78bf167 to your computer and use it in GitHub Desktop.
Simply Static run exports with PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Full static export | |
$simply_static = Simply_Static\Plugin::instance(); | |
$simply_static->run_static_export(); | |
// Exporting a build with Pro | |
update_option( 'simply-static-use-build', $build_id ); | |
$simply_static = Simply_Static\Plugin::instance(); | |
$simply_static->run_static_export(); | |
// Exporting a single post/page with Pro | |
update_option( 'simply-static-use-single', $post_id ); | |
$simply_static = Simply_Static\Plugin::instance(); | |
$simply_static->run_static_export(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment