Skip to content

Instantly share code, notes, and snippets.

@DxDiagDx
Created August 4, 2020 20:20
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 DxDiagDx/d3773ee0ab93c782957f6d9becb54103 to your computer and use it in GitHub Desktop.
Save DxDiagDx/d3773ee0ab93c782957f6d9becb54103 to your computer and use it in GitHub Desktop.
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