跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

4WP Account

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

4WP Account

由 4wpdev 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

4WP Account is a user account hub for WordPress: social sign-in (OAuth 2.0), a front-end account page, header account menu block, and optional WooCommerce login buttons.

Active in this release: Google and GitHub login when enabled in 4WP Account → Auth. Facebook and TikTok appear in settings as coming soon — they are not available for login yet.

A plugin by 4wp.dev. 4WP is our project brand; the letters “WP” appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed by, or sponsored by WordPress.

Source code: github.com/4wpdev/4wp-account

Key features

  • Google and GitHub OAuth sign-in (enable per provider in wp-admin)
  • Account page — [forwp_account] shortcode or forwp/account block (sign-in when logged out; cabinet when logged in)
  • Account menu — forwp/account-menu block or [forwp_account_menu] for header dropdown
  • Sign-in buttons — [forwp_account_signin_buttons] or forwp/auth-buttons block
  • REST API — /wp-json/forwp-account/v1/auth/{provider} and OAuth callbacks
  • WooCommerce — optional social buttons on My Account login/register forms
  • Subscriber options — hide admin bar, redirect subscribers away from wp-admin

Privacy

OAuth tokens are exchanged server-side. Profile email and name from the provider are stored in WordPress user records. No data is sent to 4wp.dev.

Development

Run tests: composer install && composer run lint && composer run test

External services

This plugin connects to third-party OAuth providers when a visitor starts social login and when an administrator saves API credentials.

Google

  • When: User clicks Google sign-in; server exchanges the authorization code and reads profile email.
  • Terms: Google API Terms of Service
  • Privacy: Google Privacy Policy

GitHub

  • When: User clicks GitHub sign-in; server exchanges the code and reads the primary verified email.
  • Terms: GitHub Terms of Service
  • Privacy: GitHub Privacy Statement

Meta (Facebook) — planned

  • When: Not enabled in this release. Listed in admin as coming soon.
  • Terms: Meta Platform Terms
  • Privacy: Meta Privacy Policy

TikTok — planned

  • When: Not enabled in this release. Listed in admin as coming soon.
  • Terms: TikTok Terms of Service
  • Privacy: TikTok Privacy Policy

適用於區塊編輯器

這個外掛提供 4 個可供 Gutenberg/區塊編輯器使用的區塊。

  • 4WP Account Menu User icon with a classic cabinet dropdown — account sections, custom links, and log out.
  • 4WP Account Link Header link with user icon — guest sign-in or account page when logged in.
  • 4WP Sign-in Buttons Social sign-in buttons (Google, GitHub, …).
  • 4WP Account Sign-in for guests or account cabinet with left menu for logged-in users.

安裝方式

  1. Upload the plugin to /wp-content/plugins/4wp-account/ or install from the Plugins screen.
  2. Activate 4WP Account.
  3. Open 4WP Account → Auth — enable Google and/or GitHub and paste OAuth credentials.
  4. Copy each Redirect URI from settings into Google Cloud or GitHub OAuth app settings.
  5. Create a page with [forwp_account] or add the Account block.

常見問題集

Which providers work in 1.0.4?

Google and GitHub when enabled and configured. Facebook and TikTok are shown as coming soon in admin and cannot be used for login.

Where is the OAuth callback URL?

In 4WP Account → Auth — use the Redirect URI shown for each provider (built with rest_url(), compatible with custom REST prefixes).

Does the plugin create WordPress users?

Yes. On first social login, a subscriber account is created from the provider email (required). Returning users are matched by email and logged in with WordPress auth cookies after OAuth state verification.

使用者評論

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

參與者及開發者

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

參與者
  • 4wpdev

將〈4WP Account〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.4

  • Remove unused register_setting() calls (automated Plugin Check).
  • Plugin Check warnings: input sanitization, migration SQL %i, distignore moved to docs.

1.0.3

  • Review fixes: required OAuth state validation, rest_url() for callback URLs, readme aligned with active providers.
  • Account blocks and GitHub provider (from ongoing development).

1.0.2

  • WordPress.org packaging: readme, GPL license, text domain 4wp-account, quality toolchain.
  • Provider enable toggle respected before login.

1.0.1

  • Gmail OAuth, shortcodes, WooCommerce integration.

中繼資料

  • 版本 1.0.4
  • 最後更新 2 週前
  • 啟用安裝數 少於 10 次
  • WordPress 版本需求 6.4 或更新版本
  • 已測試相容的 WordPress 版本 7.0.1
  • PHP 版本需求 8.0 或更新版本
  • 語言
    English (US)
  • 標籤:
    accountGithubgoogleoauthsocial login
  • 進階檢視

評分

這個項目尚無任何評論記錄。

Your review

查看全部使用者評論

參與者

  • 4wpdev

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.