has_custom_layout( 'checkout_content' ) || Main::get_instance()->has_custom_layout( 'checkout_form' ) ) ) {
$this->display_template();
return false;
}
return $template;
}
/**
* Display custom template on the shop page.
*/
private function display_template() {
$this->before_template_content();
?>
has_custom_layout( 'checkout_content' ) ) : ?>
template_content( 'checkout_content' ); ?>
checkout()->is_registration_enabled() && WC()->checkout()->is_registration_required() && ! is_user_logged_in() ) : ?>
after_template_content();
}
}
Checkout::get_instance();