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_downloadable' );
function bbloomer_single_downloadable() {
if( $product->is_downloadable() ){
// do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment