Skip to content

Instantly share code, notes, and snippets.

@rashedripon
Created April 4, 2021 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashedripon/b6ecc1c3606d039e60be988c39c248e0 to your computer and use it in GitHub Desktop.
Save rashedripon/b6ecc1c3606d039e60be988c39c248e0 to your computer and use it in GitHub Desktop.
make download-virtual field checked by default
<div class="dokan-form-group dokan-product-type-container <?php echo esc_attr( $class ); ?>">
<div class="content-half-part downloadable-checkbox">
<label>
<input type="checkbox" checked class="_is_downloadable" name="_downloadable" id="_downloadable"> <?php esc_html_e( 'Downloadable', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Downloadable products give access to a file upon purchase.', 'dokan-lite' ); ?>"></i>
</label>
</div>
<div class="content-half-part virtual-checkbox">
<label>
<input type="checkbox" checked class="_is_virtual" name="_virtual" id="_virtual"> <?php esc_html_e( 'Virtual', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Virtual products are intangible and aren\'t shipped.', 'dokan-lite' ); ?>"></i>
</label>
</div>
<div class="dokan-clearfix"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment