should_render_login() ) {
$this->render_woocommerce_checkout_login_form();
}
}
/**
* Woocommerce Checkout After Customer Details
*
* Output containing elements. Callback function for the woocommerce_checkout_after_customer_details hook.
*
* This eliminates the need for template overrides.
*
* @since 3.5.0
*/
public function woocommerce_checkout_after_customer_details() {
?>
should_render_coupon() ) {
$this->render_woocommerce_checkout_coupon_form();
}
?>
editor->is_edit_mode();
// Simulate a logged out user so that all WooCommerce sections will render in the Editor
if ( $is_editor ) {
$store_current_user = wp_get_current_user()->ID;
wp_set_current_user( 0 );
}
// Add actions & filters before displaying our Widget.
$this->add_render_hooks();
// Display our Widget.
echo do_shortcode( '[woocommerce_checkout]' );
// Remove actions & filters after displaying our Widget.
$this->remove_render_hooks();
// Return to existing logged-in user after widget is rendered.
if ( $is_editor ) {
wp_set_current_user( $store_current_user );
}
}
public function get_group_name() {
return 'woocommerce';
}
}