Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Woo: условие вывода для виртуальных товаров
add_action( 'woocommerce_after_single_product_summary', 'bbloomer_single_virtual' );
function bbloomer_single_virtual() {
if( $product->is_virtual() ){
// do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment