FARM QR Code Generator

外掛說明

QR Code Generator creates scannable QR codes for your WordPress content. Each post, page, or WooCommerce product gets a compact short URL (/go/{base36}) that 301-redirects to the original permalink.

Key Features:

  • Pure PHP QR code engine — no external APIs, no JavaScript rendering
  • Short URLs via /go/{base36} with permanent 301 redirects
  • Works with posts, pages, and WooCommerce products
  • Customizable pixel size, quiet zone, and colours
  • One-click generate, download, and copy from the editor sidebar
  • Lightweight — only requires the PHP GD extension
  • ISO/IEC 18004 compliant QR encoding

How It Works:

  1. Edit any post, page, or product
  2. Find the “QR Code” meta box in the sidebar
  3. Click “Generate QR Code”
  4. Download the PNG or copy the short URL

螢幕擷圖

安裝方式

  1. Upload the farm-qr-code-generator folder to /wp-content/plugins/
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. (Optional) Configure settings under Tools > QR Code Generator
  4. Edit any post and use the QR Code meta box in the sidebar

Requirements:

  • PHP 7.4 or higher
  • PHP GD extension (enabled on most hosts)
  • WordPress 5.0 or higher

常見問題集

Does this plugin require an external API?

No. QR codes are generated entirely in PHP on your server using the GD image library.

What post types are supported?

By default: posts, pages, and WooCommerce products. You can select which post types to enable in Tools > QR Code Generator.

Can I customise the QR code appearance?

Yes. Go to Tools > QR Code Generator to change the pixel size, quiet zone (margin), and dark/light colours.

Do existing QR codes update when I change settings?

No. After changing settings, click “Regenerate QR Code” on each post to apply the new appearance.

Where are the QR code images stored?

In your uploads directory under wp-content/uploads/qr-codes/. They are automatically deleted when a post is permanently deleted.

Does the short URL work without pretty permalinks?

The /go/{base36} rewrite requires pretty permalinks to be enabled (Settings > Permalinks — anything other than “Plain”).

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈FARM QR Code Generator〉的開發相關工作。

參與者

將〈FARM QR Code Generator〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3.0

  • Added customisable dark and light colours
  • Added configurable pixel size and quiet zone
  • Added post type selection in settings
  • Added copy-to-clipboard for short URLs

1.2.0

  • Added settings page under Tools
  • Improved QR code rendering reliability

1.1.0

  • Added WooCommerce product support
  • Added download button for QR code PNG

1.0.0

  • Initial release