Created
August 4, 2020 19:55
-
-
Save DxDiagDx/42cb81c6fbc46919486b6f2399fa62d0 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_on_sale' ); | |
function bbloomer_single_on_sale() { | |
if ( $product->is_on_sale() ) { | |
// do something | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment