Skip to content

Instantly share code, notes, and snippets.

@spivurno
Last active October 13, 2021 14:42
Show Gist options
  • Save spivurno/5bbcc03cf0d8fe9aa82834c8e14f361f to your computer and use it in GitHub Desktop.
Save spivurno/5bbcc03cf0d8fe9aa82834c8e14f361f to your computer and use it in GitHub Desktop.
Gravity Perks // GP Live Preview // Filter Preview Template Path
<?php
/**
* Gravity Perks // GP Live Preview // Filter Preview Template Path
* http://gravityperks.com
*/
add_filter( 'gplp_preview_template', function( $template ) {
return get_stylesheet_directory() . '/custom-template.php';
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment