Title: COD Control
Author: Kyriakos
Published: <strong>4. новембар 2025.</strong>
Last modified: 4. новембар 2025.

---

Претражи додатке

![](https://s.w.org/plugins/geopattern-icon/cod-control.svg)

# COD Control

 [Kyriakos](https://profiles.wordpress.org/changlee/)

[Преузимање](https://downloads.wordpress.org/plugin/cod-control.1.0.4.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/cod-control/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/cod-control/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/cod-control/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/cod-control/#developers)

 [Подршка](https://wordpress.org/support/plugin/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“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници

 *   [ Kyriakos ](https://profiles.wordpress.org/changlee/)

[Преведите „COD Control“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/cod-control)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/cod-control/), проверите
[SVN складиште](https://plugins.svn.wordpress.org/cod-control/) или се пријавите
на [белешку градње](https://plugins.trac.wordpress.org/log/cod-control/) преко [RSS-а](https://plugins.trac.wordpress.org/log/cod-control/?limit=100&mode=stop_on_copy&format=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

## Мета

 *  Version **1.0.4**
 *  Last updated **5 месеци раније**
 *  Active installations **Мање од 10**
 *  WordPress version ** 6.0 или новије **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 или новије **
 *  Language
 * [English (US)](https://wordpress.org/plugins/cod-control/)
 * Tags
 * [checkout](https://sr.wordpress.org/plugins/tags/checkout/)[cod](https://sr.wordpress.org/plugins/tags/cod/)
   [customers](https://sr.wordpress.org/plugins/tags/customers/)[payment](https://sr.wordpress.org/plugins/tags/payment/)
   [woocommerce](https://sr.wordpress.org/plugins/tags/woocommerce/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/cod-control/advanced/)

## Оцене

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cod-control/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cod-control/reviews/)

## Сарадници

 *   [ Kyriakos ](https://profiles.wordpress.org/changlee/)

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/cod-control/)