SKU Generator For Wc

By tawkir

0+ active installationsVersion 1.0.0

Automatically generate SKUs for Woocommerce products.Supports both single product save and bulk generation from admin panel.

Description

SKU Generator For Wc is a simple,clean and secure plugin to automatically generate SKUs for your woocommerce products.

Feature include:
– 🔢 Auto-generate SKU when a product is created or updated (if empty)
– 📦 Bulk generate SKUs for all products without one via admin menu
– 🔒 Sanitized and secured with nonce,user capability checks, and escaping.
– 🧱 Easy-to-extend OOP structure

Default SKU format: ‘PROD_{product_ID}’

License

This plugin is licensed under the GPL v2 or later.

Installation

  1. Upload the plugin folder to the ‘/wp-content/plugins/’ directory or install it directly via the wordpress dashboard.
  2. Activate the plugin through the ‘Plugins’ menu.
  3. Go to Woocommerce → SKU Generator to bulk generate missing SKUs.

FAQ

Can i change the SKU format?

Not yet, but a settings panel for custom patterns is coming soon.

Does it generate SKUs for variations?

Yes! It handles both simple and variable products (including variations).

Will it overwrite existing SKUs?

No. It only generates SKUs for products that don’t already have one.

Changelog

1.1

  • Added security improvements (escaping,nonce,capability checks)
  • Fully OOP-structured and WordPress Coding Standard compliant

1.0

  • Initial release – single and bulk SKU generation support