Created
April 22, 2020 06:25
-
-
Save digitalchild/f23265023d5830d314c510d7ec9596e9 to your computer and use it in GitHub Desktop.
Make the apply to be a vendor checkbox for WC Vendors Marketplace checked
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_register_form', 'load_js' ); | |
function load_js(){?> | |
<script type="text/javascript"> | |
jQuery('#apply_for_vendor').prop('checked', true); | |
</script> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment