Created
August 4, 2020 20:20
-
-
Save DxDiagDx/d3773ee0ab93c782957f6d9becb54103 to your computer and use it in GitHub Desktop.
Woo: условие вывода для виртуальных товаров
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_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