diff --git a/src/Templates/CheckoutTemplate.php b/src/Templates/CheckoutTemplate.php index c69df17f9c4..000c6edbe18 100644 --- a/src/Templates/CheckoutTemplate.php +++ b/src/Templates/CheckoutTemplate.php @@ -42,6 +42,7 @@ public static function get_template_title() { */ public function is_active_template() { global $post; - return $post instanceof \WP_Post && get_option( 'woocommerce_checkout_page_endpoint' ) === $post->post_name; + $placeholder = $this->get_placeholder_page(); + return null !== $placeholder && $post instanceof \WP_Post && $placeholder->post_name === $post->post_name; } }