$woocommerce->cart->empty_cart();
}
}
-
+add_action( 'gform_after_submission_17', 'after_submission', 10, 2 );
+function after_submission(){
+ function thankyou_reload(){ ?>
+ <script>
+ var url = window.location.href;
+ setTimeout(function(){window.location = url;} , 5000);
+ </script>
+<?php }
+}
/* This function exists to remove the content from the top of detail pages of
* the GLm MemberDB plugin.
*/
<?php get_header(); ?>
+<?php
+ if( function_exists('thankyou_reload') ){
+ thankyou_reload();
+ }
+?>
<main class="page-inside">
<div id="head-img">
<?php echo glm_get_background(); ?>