📜  添加 WooCommerce 价格后缀 - PHP 代码示例

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

代码示例1
add_filter( 'woocommerce_get_price_html', 'njengah_text_after_price' );

function njengah_text_after_price($price){

    $text_to_add_after_price  = ' for a pair of brakers '; //change text in bracket to your preferred text 
          
    return $price .   $text_to_add_after_price;
          
}