add_render_attribute( 'input' . $item_index, 'class', 'elementor-acceptance-field' ); $form->add_render_attribute( 'input' . $item_index, 'type', 'checkbox', true ); if ( ! empty( $item['acceptance_text'] ) ) { $label = ''; } if ( ! empty( $item['checked_by_default'] ) ) { $form->add_render_attribute( 'input' . $item_index, 'checked', 'checked' ); } ?>