Skip to content

← 返回執行

Staging 建立

Staging 網址:https://woocommerce-1571150-6371013.cloudwaysapps.com/?haru-1234

維護模式 bypass

  • 維護外掛:LightStart(WP Maintenance Mode),未授權訪客回 503
  • 自訂 mu-plugin:wp-content/mu-plugins/staging-bypass.php
  • 機制:網址尾端加 ?haru-1234 由 mu-plugin 偵測,種 cookie staging_bypass(7 天),同 session 內點任何連結都直通
  • 撤銷:刪除 mu-plugin 並在 LightStart Exclude 移除 haru-1234

停用外掛(追蹤碼)

  • google-site-kit
  • pixelyoursite
  • duracelltomi-google-tag-manager
  • facebook-for-woocommerce

WooCommerce email 通知關閉

WooCommerce → Settings → Emails,已將所有通知 enabled 設為 no

  • new_order
  • cancelled_order
  • failed_order
  • customer_on_hold_order
  • customer_processing_order
  • customer_completed_order
  • customer_refunded_order
  • customer_invoice
  • customer_note
  • customer_reset_password
  • customer_new_account