[WordPress] 外掛分享: Attributes User Access

首頁外掛目錄 › Attributes User Access
WordPress 外掛 Attributes User Access 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(2 則評價)
61 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.2.2 上架:2025-07-20

內容簡介

總結: Attributes User Access 是專為 WordPress 設計的進階且輕量的身分驗證解決方案,強化網站管理員對登入流程的細緻控制,提升使用者身分驗證和訪問體驗。

問題與答案:
1. Attributes User Access 主要提供哪些核心功能?
- 自訂登入頁面製作: 能夠生成完全整合的 WordPress 登入頁面,支援簡短代碼形式以便於佈景主題兼容。
- 靈活的登入重新導向功能: 能夠重新導向原生 WordPress 登入請求,並定義基於角色和上下文的重新導向規則。
- 開發者導向的架構: 使用 PSR-4 自動載入和物件導向設計,支援動作和篩選鉤子進行擴展,並提供模組化組件以方便客製化。
- 效能優化: 選擇性載入腳本以最小化影響,使用暫存進行緩存和提升效率,並部署經過最小化處理的資源與源碼對應以供生產使用。

2. 如何使用 Attributes User Access 提供的簡短代碼?
- 基本登入表單: [attributes_login_form]
- 加入參數的登入表單: [attributes_login_form redirect="/dashboard" remember="false"]
- 可用的參數有: redirect(登入後的目標網址,預設為「Dashboard」)、remember(是否顯示「記住我」選項,預設為 true)、form_id(自訂表單識別碼,預設為 attributes_login_form)。

3. 該如何自定義模板覆寫?
- 在您的佈景主題中建立一個目錄結構,以反映外掛的模板位置: your-theme/attributes/front/forms/login-form.php。
- 根據需要自定義模板。
- 外掛使用了一個結構良好的模板與鉤子,可供您利用: attrua_login_form_fields(為表單添加自定義字段)和 attrua_after_login_form(在表單後添加內容)。

4. 如何取得進一步的支援與文件?
- 請參考支援文件: https://attributeswp.com/docs
- 如需提交問題請至 GitHub: https://github.com/attributeswp/attributes-user-access/issues
- 也可透過 WordPress 官方支援論壇: https://wordpress.org/support/plugin/attributes-user-access。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Attributes User Access」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Attributes User Access is a lightweight and flexible authentication solution for WordPress. It empowers site administrators with detailed control over login processes, enhancing user authentication and access experience with a focus on security and performance.
Core Features
Custom Login Page Creation

Generate fully integrated login pages with WordPress
Use shortcode-based forms for easy theme compatibility
Automatically adapts to WordPress core updates
Template override system for complete customization

Flexible Login Redirection

Redirect native WordPress login requests
Define role-based and context-aware redirection rules
Custom redirect URLs per user role

Developer-Focused Architecture

PSR-4 autoloading and object-oriented design
Extensible with action and filter hooks
Modular components for easy customization
Comprehensive API for extensions

Security & Performance

WordPress.org compliant security practices
Nonce verification on all forms and AJAX requests
Transient-based error handling (no PHP sessions)
Optimized asset loading
Minified CSS and JavaScript for production

Shortcode Usage
Basic login form:
[attributes_login_form]
With parameters:
[attributes_login_form redirect=”/dashboard” remember=”false”]
Available parameters:

redirect – Target URL after login (default: Dashboard)
remember – Show “Remember Me” checkbox (default: true)
form_id – Custom form identifier (default: attributes_login_form)
label_username – Custom username field label
label_password – Custom password field label
label_remember – Custom remember me label
label_log_in – Custom login button text

Template System
Template System
Override templates in your theme for complete customization.
Template location in theme:
your-theme/attributes/front/forms/login-form.php
Original template location:
wp-content/plugins/attributes-user-access/templates/front/forms/login-form.php
Copy the original template to your theme and customize as needed. The plugin automatically uses your theme’s template when available.
Developer Hooks
Actions:

attrua_before_login_form – Fires before rendering the login form wrapper
attrua_after_login_form – Fires after rendering the login form
attrua_login_form_fields – Hook for adding custom fields to login form
attrua_login_failed – Fires when a login attempt fails
attrua_successful_login – Fires after successful authentication
attrua_before_page_creation – Fires before creating authentication pages
attrua_after_page_creation – Fires after creating authentication pages

Filters:

attrua_login_redirect_url – Customize login redirection
attrua_login_error_message – Modify login error messages
attrua_login_credentials – Filter login credentials before authentication
attrua_action_links – Modify plugin action links
attrua_row_meta – Modify plugin row meta links

Privacy Policy
Attributes User Access does not:

Collect any user data
Send data to external servers
Use cookies for tracking
Store sensitive information

The plugin only stores:

Plugin settings in WordPress options table
Temporary error messages in WordPress transients (auto-expire)
Page IDs for custom authentication pages

All data is stored locally in your WordPress database and is completely removed upon plugin uninstallation.
Support & Contributing
Documentation: https://attributeswp.com/docs
Support Forum: https://wordpress.org/support/plugin/attributes-user-access
GitHub Repository: https://github.com/attributeswp/attributes-user-access
Report Issues: https://github.com/attributeswp/attributes-user-access/issues
Contributions are welcome! Please feel free to submit pull requests or open issues on GitHub.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon