Last active
September 6, 2019 06:34
-
-
Save imran-khan1/90eb2888604311da8f1fc80925be3904 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
//flatsome on_sale product custom text | |
function display_text_product_box_after() { | |
global $product; | |
if ( $product->is_on_sale() ) | |
{ | |
echo '<b style="color:red">Limited time offer</b>'; | |
} | |
} | |
add_action('flatsome_product_box_after', 'display_text_product_box_after'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment