COD Control

外掛說明

  • Admin menu: COD Customers with columns Name, Email, City, Received COD (Yes/No).
  • If Received COD = No, the cod gateway is removed at checkout for that customer.
  • Applies when users are logged in OR when they simply enter their email address on the checkout form.
  • Lightweight, no database tables required (uses user meta).

安裝方式

  1. Upload the ZIP via Plugins Add New Upload Plugin.
  2. Activate COD Control.
  3. Go to COD Control in the admin menu to manage flags.

常見問題集

Does this work for guests?

If the guest uses an email that belongs to an existing WordPress user (customer/subscriber) that has Received COD = No, COD will be disabled.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈COD Control〉的開發相關工作。

參與者

將〈COD Control〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • First release.

1.0.1

  • wordpress.org changes recommended.
  • Fixed readme.txt Contributors line to use WordPress.org username changlee.
  • Moved inline <style> and <script> from PHP into assets/css/codco-style.css and assets/js/codco-script.js.
  • Added proper asset loading via wp_enqueue_scripts with wp_register_style/script, and wp_localize_script for ajaxurl + nonce.
  • Prefixed actions and methods (codco_*) and renamed class to CODCO_Control to avoid collisions.
  • Added nonce checks with check_ajax_referer( 'codco_email_nonce', 'security' ) in AJAX handler.
  • Hardened wp_verify_nonce() inputs with sanitize_text_field( wp_unslash( ... ) ).
  • Escaped output late using esc_url, esc_js for dynamic values.
  • Added placeholder ajax-loader.gif if missing.

1.0.2

  • wordpress.org changes recommended.
  • Fixed security issues with nonces and sanitization
  • Added proper permission checks (current_user_can)
  • Replaced inline CSS/JS with proper wp_enqueue_* methods
  • Updated version numbers for release

1.0.3

  • wordpress.org changes recommended.
  • Fixed security issues with nonces and sanitization
  • Added proper permission checks (current_user_can)

1.0.4

  • wordpress.org changes recommended.
  • plugin prefix gets Updated