Skip to content

Instantly share code, notes, and snippets.

@oberonlai
Last active July 20, 2017 14:57
Show Gist options
  • Save oberonlai/d5ad87dbaa92373674d35bd5a39ae668 to your computer and use it in GitHub Desktop.
Save oberonlai/d5ad87dbaa92373674d35bd5a39ae668 to your computer and use it in GitHub Desktop.
<?php
// add_action("衣架名","要掛上去的衣服名","這件衣服在這衣架的順位")
add_action("woocommerce_before_checkout_form","add_sale_word",10);
// 建立衣服
function add_sale_word(){
// echo 是 php 輸出的語法,輸出內容為你想要放的折扣訊息
echo "<p style='color: red;'>今天結帳享有 66 折優惠~</p>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment