📜  ->regular_price - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:17.148000             🧑  作者: Mango

代码示例1
/**
 * Returns product price based on sales.
 * 
 * @return string
 */
function the_dramatist_price_show() {
    global $product;
    if( $product->is_on_sale() ) {
        return $product->get_sale_price();
    }
    return $product->get_regular_price();
}