diff --git a/includes/Checkout.php b/includes/Checkout.php index 717213906..80e1b7a50 100644 --- a/includes/Checkout.php +++ b/includes/Checkout.php @@ -85,13 +85,14 @@ public function add_checkout_permalink_query_var( $vars ) { * Loads the checkout permalink template. * * @since 3.3.0 + * + * @param string $template + * @return string */ - public function load_checkout_permalink_template() { + public function load_checkout_permalink_template( $template ) { if ( get_query_var( 'fb_checkout' ) ) { // Clear the WooCommerce cart WC()->cart->empty_cart(); - - // Get the 'products' query parameter $products_param = get_query_var( 'products' ); if ( $products_param ) { @@ -122,6 +123,8 @@ public function load_checkout_permalink_template() { exit; } + + return $template; } /**