
內容簡介
使用關聯式陣列創建自定義用戶註冊表單。使用 HTML 表單元素屬性作為陣列鍵來創建表單。任何自定義陣列值都會自動添加到 WordPress 管理員中用戶資料的新區域中。包含符合 WordPress 用戶元語法的值的陣列將在默認的 WordPress 個人資料頁面中自動添加這些輸入值到那些預製值中。
自定義 WP 註冊表單具備內置的安全性和驗證功能,如 wp_nonce_field 驗證和垃圾郵件防護。它還可以自動逸脫屬性和 HTML 輸出,並消毒用戶輸入值。
用戶必須創建一個“CWRF Form”陣列。這個陣列需要作為參數傳遞給新的“CWRF_Form”對象。CWRF 表單陣列現在可以使用 HTML 表單類型:文本、電子郵件、文件、單選、下拉列表和文本區作為鍵“type”的值。更多功能即將推出,我也總是歡迎拉取請求。
該插件的開發在 GitHub 上進行。歡迎拉取請求。在前往插件論壇之前,請查看 這裡報告的問題。
外掛標籤
開發者團隊
原文外掛簡介
Create a custom user registration form with an associative array. Use HTML form element attributes as array keys to create a form. Any custom array values are automatically added to new area of a user’s profile page in the WordPress admin. Arrays containing values that match WordPress user meta syntax will have those input values automatically added to those premade values in the default WordPress profile page.
Custom WP Registration Form comes with built in security and validation such as wp_nonce_field verification and spam honey pot. It also automatically escapes attributes and html outputs and sanitizes user input values.
User must create a “CWRF Form” array. This array will need to be passed as an argument to the a new ‘CWRF_Form’ object. The CWRF Form array can currently take HTML form types: text, email, file, radio, select, and textarea as values to the key ‘type’. More coming soon… also, I always welcome pull requests.
Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.
