function parse_query($wp_query) { $checkout_type = get_query_var('checkout'); // setup a new checkout after being redirected from a gateway page appthemes_setup_checkout($checkout_type, $_SERVER['REQUEST_URI']); $wp_query->set('checkout', get_query_var('checkout')); }
function template_include($path) { appthemes_setup_checkout('edit-listing', add_query_arg('listing_edit', $_GET['listing_edit'], get_permalink(self::get_id()))); $step_found = appthemes_process_checkout(); if (!$step_found) { return locate_template('404.php'); } return locate_template(self::$_template); }