[WordPress] 外掛分享: EffortLess QR Code Generator

WordPress 外掛 EffortLess QR Code Generator 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「EffortLess QR Code Generator」是 2025-08-13 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-02-15,距離現在已有 11 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

domclic |

外掛標籤

api | qr code | generator | shortcode | responsive |

內容簡介

### 摘要:
Effortless QR Code Generator 是一款輕量級的 WordPress 外掛,可以使用簡單的短代碼來創建 QR 碼。此外掛使用 JavaScript 在客戶端生成 QR 碼,無需外部依賴或伺服器處理。

### 問題與答案:
1. 這個外掛的主要功能是什麼?
- **答案:** 允許使用簡單的短代碼來生成 QR 碼。

2. QR 碼的尺寸可以做怎樣的客製化調整?
- **答案:** 可以使用 "size" 參數來控制 QR 碼的尺寸,預設大小為 150 像素,最小為 50 像素,最大為 500 像素。

3. 這個外掛保護使用者隱私嗎?
- **答案:** 是的,這個外掛不會收集、儲存或傳遞任何個人資料,QR 碼完全是在使用者的瀏覽器中使用 JavaScript 生成的。

原文外掛簡介

Effortless QR Code Generator is a WordPress plugin that allows you to create QR codes using a simple shortcode. It supports both client-side JavaScript rendering and server-side PHP rendering.
Features

Simple shortcode: Use [effortless_qrcode url="https://example.com"] to generate QR codes
Dual rendering modes: Client-side (JavaScript) or server-side (PHP/PNG)
Developer API: Generate QR codes programmatically from your plugins/themes
Customizable size: Control QR code dimensions (100-500 pixels)
Custom colors: Set dark and light colors for the QR code
Error correction levels: Choose L, M, Q, or H
Cached PNG images: Server-rendered QR codes are cached in the uploads folder
Responsive design: QR codes adapt to different screen sizes
No external dependencies: All code is bundled locally
Privacy-friendly: No data sent to external services
Accessibility ready: Proper alt text support
Performance optimized: Scripts load only when needed

Shortcode Parameters

url – The URL to encode (required)
size – Size in pixels (default: 150, min: 100, max: 500)
color_dark – Dark color in hex format (default: #000000)
color_light – Light color in hex format (default: #ffffff)
render – Rendering mode: “client” or “server” (default: client)
ecc – Error correction level: L, M, Q, H (default: M)
alt – Alt text for accessibility (server rendering only)
class – Additional CSS class (server rendering only)
data – Arbitrary data to encode (plain text, WiFi, vCard, etc.). When set, overrides url and disables link
link – Wrap QR code in a clickable link: “yes” or “no” (default: no). Only works with URL content, ignored when data is used
title – Tooltip text shown on hover
target – Link target attribute: “_blank”, “_self”, etc. (default: _blank)

Usage Examples
Basic usage (client-side):
[effortless_qrcode url=”https://example.com”]
Server-side rendering:
[effortless_qrcode url=”https://example.com” render=”server”]
With custom size and colors:
[effortless_qrcode url=”https://example.com” size=”200″ color_dark=”#0073aa”]
Server-side with high error correction:
[effortless_qrcode url=”https://example.com” render=”server” ecc=”H” alt=”Scan me”]
PHP API for Developers
Third-party plugins and themes can generate QR codes programmatically using the Effortless_QRCode_Native class.
Basic Usage:
';
}
}
?>

With Custom Options:

Display in a Template:

alt=""
width="150"
height="150">

API Reference
Effortless_QRCode_Native::generate_png( $data, $size, $color_dark, $color_light, $ecc, $margin )
Generates a QR code PNG image and saves it to the WordPress uploads folder.
Parameters:

$data (string) – Required. The data to encode (URL, text, etc.)
$size (int) – Optional. Image size in pixels. Default: 150
$color_dark (string) – Optional. Hex color for dark modules. Default: ‘#000000’
$color_light (string) – Optional. Hex color for light modules. Default: ‘#ffffff’
$ecc (string) – Optional. Error correction level (L, M, Q, H). Default: ‘M’
$margin (int) – Optional. Quiet zone margin in modules. Default: 4

Returns:
Array on success with keys:
* url – Public URL to the generated PNG image
* path – Server filesystem path to the PNG file
* debug – Debug information string
Returns false on failure.
Notes:

Images are cached based on all parameters (same input = same file)
Files are stored in wp-content/uploads/effortless-qrcodes/
Requires GD library for PNG generation

Error Correction Levels

L – 7% recovery capacity (smallest QR code)
M – 15% recovery capacity (default, good balance)
Q – 25% recovery capacity
H – 30% recovery capacity (largest QR code, best for print)

Higher error correction allows the QR code to be read even if partially damaged or obscured.
Privacy
This plugin does not collect, store, or transmit any personal data. QR codes are generated locally (either in the browser or on your server).
Requirements

PHP 7.4+ with GD library (for server-side PNG generation)
WordPress 5.0+
JavaScript enabled (for client-side rendering only)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「EffortLess QR Code Generator」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Sitemap Page 》透過這個 WordPress 外掛,您現在可以輕鬆將站點地圖加入到任何一個頁面中。只需要在您的頁面上使用簡碼 [wp_sitemap_page] 即可。這會自動生成您所有網頁和...。
  • SMK Sidebar Generator 》這個外掛可以生成任意數量的側邊欄,然後讓你將它們放置在你想要的任何頁面。, , 特色:, , 無限數量的側邊欄。, 使用條件替換預設主題側邊欄,或全局替換只...。
  • FakerPress 》當您創建新的主題或外掛時,您總是需要創建自訂數據以測試您的外掛是否正常運作,作為開發人員,我們自己也遇到過這個問題。, 我們這個外掛的目標是填補這個...。
  • Child Theme Wizard 》Child Theme Wizard 讓你在 WordPress 的管理介面中輕鬆創建子佈景主題,不需額外的工具。啟用後,你可以在「工具」-「Child Theme Wizard」中找到它。, 指定...。
  • Heroic Favicon Generator 》“最佳的網站圖示外掛程式” ★★★★★ - WordPress.org 使用者評論。, 簡單強大的 WordPress 網站圖示外掛程式。, 使用 Heroic Favicon Generator 快...。
  • WPS Child Theme Generator 》中文, WPS Child Theme Generator 是一款高級工具,可以輕鬆創建所需的子佈景主題。它提供許多選項,可以添加到 functions.php 中,而無需修改它。您也可以將...。
  • AI WP Writer – AI content generation, SEO-articles, rewriting 》網站內容創作外掛使用 ChatGPT、GPT-4 及最佳神經網絡進行圖像生成,可快速有效填充網站。透過 AI WP Writer 外掛,您能輕鬆創建獨特、高品質和 SEO 最佳化的...。
  • Simple XML Sitemap Generator 》XML Sitemap外掛可建立符合Google、Yahoo(以及Bing)要求的XML檔案。, , 只要安裝此外掛程式至WordPress,它便會自動運作。您只需要創建或更新任何文章或頁...。
  • Browser Screenshots 》使用 [browser-shot] 短代碼來自動化網站截圖的過程。一個圖示也會被加入 TinyMCE 編輯器中,以方便製作短代碼。, 外掛使用從 WordPress.com 取得的「mshots...。
  • PDF Thumbnail Generator 》his plugin automatically generates a thumbnail for PDF files when they are uploaded to the WordPress Media library. It can also generate missing th...。
  • Remove Meta Generators 》這個外掛可以移除所有 Meta Generator HTML 標籤,包括 WordPress 核心自帶的 generator 標籤。安裝、啟用即可輕鬆使用,而後您的 HTML/源代碼中不再包含 Met...。
  • PDF Thumbnails 》此外掛在媒體管理員中加入 hook,每當上傳 PDF 時就會產生縮圖。所產生的縮圖為所上傳文件中的第一頁圖像,並以 PDFNAME-thumbnail 命名,其中 PDFNAME 會被...。
  • Featured Image Generator 》您曾經為網站尋找特色圖片而感到困難嗎?這個外掛可以在 unsplash.com 等免費授權的優秀照片中搜尋,並在一個按鈕中將其導入到您的網站。該外掛包括圖層、色...。
  • EZ Form Calculator 》ez Form Calculator是一個直覺式的WordPress表單建立工具。輕鬆地建立表單計算器、進階成本估算器或全面的聯繫表單,讓你的網站更易獲取商機。利用ez Form Ca...。
  • Bulk Page Generator 》Bulk Page Generator 可以幫助您減少工作量並節省寶貴的時間。使用此外掛,用戶可以使用最簡單的用戶界面輕鬆創建頁面/文章,該界面提供了創建頁面/文章時必...。

文章
Filter
Apply Filters
Mastodon