function cw_custom_checkbox_fields( $checkout ) { echo '<div class="cw_custom_class"><h3>'.__('אישור דיוור: ').'</h3>'; woocommerce_form_field( 'custom_checkbox', array( 'type' => 'checkbox', 'label' => __('אני מאשר\ת את הדיוור.'), 'required' => false, ), $checkout->get_value( 'custom_checkbox' )); echo '</div>'; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter