📜  woocommerce 自定义销售横幅,窗扇 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:01.588000             🧑  作者: Mango

代码示例1
add_filter('woocommerce_sale_flash', 'ydcoza_custom_sales_badge');
function ydcoza_custom_sales_badge() {
  $url = site_url().'/wp-content/uploads/2021/03/best_seller_sash.png';
  $img = '
'; return $img; }