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
/*-------------------------------------- | |
Woocommerce - Disallow Guest Checkout on Certain products | |
----------------------------------------*/ | |
// Display Guest Checkout Field | |
add_action( 'woocommerce_product_options_general_product_data', 'woo_add_disable_gc_fields' ); | |
function woo_add_disable_gc_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; |