CodeCanyon

User Extra Fields

User Extra Fields

Easily add extra fields to the registerd users displaying them on register page, account page and more! Wordpress User Extra Field plugin is WooCommerce and WPML compatible!

LIVE DEMO

http://www.codecanyon.eu/wpuef/
user: demo
pass: demo

CUSTOMIZE REGISTER PAGE

Wordpress User Extra Field lets site admin to easily add new fields to the user register page. This can be done using a nice visual composer. Fields that can be added are:
  • File
  • Text
  • Textarea
  • Number
  • Email
  • Site url
  • Date
  • Time
  • Multiple choice
  • Single choice
  • Dropdown menu
  • Coutry & state (available only for WooCommerce. State field can be optionally hidden)
All fields can be optionally setted as required field during registration. Furthermore, for Date and Time fields the plugin uses nice calendar and time jquery componets to help users in selecting right values.

FILE UPLOAD

With the file extra field, you can let you users/customers to attach files to their profile! This can be done during registration process or even during WooCommerce checkout process! Site admin can also limit file size and file types allowed to upload.

NOTE: In some cases you have to set LimitRequestBody max bytes value on your web server to the size you need (or the maximum allowed size). To do that, simply edit the .htaccess (or httpd.conf) on you root adding “LimitRequestBody 0” at the end of the file.

USER PROFILE EDIT PAGE

WPUEF extends the user profile page adding the extra fields created. In this way every user (or site admin) can edit his info.

DISPLAY FIELDS IN USERS TABLE / WOOCOMMERCE CUSTOMERS MANAGER TABLE

For each fiend is also possible show its content directly in the embeded Users table and in the WooCommerce Customer Manager customers table, each field in its own column.

WPML COMPATIBLE

WPUEF is wpml compatible. Create as many fields you want, then translate labels and description using the WPML -> String translation menu

WOOCOMMERCE COMPATIBLE

WPUEF supports WooCommerce. Automatically adds extra field on the registration (optionally can be hidden).
Your customers, by default, will be able to edit extra fields on their “My Account” page but, optionally, the Shop admin can configure every field to be editable only in “Shipping Address” or “Billing Address” edit pages!
Furthermore, Shop admin can also trace this extra info directly on the backend order detais page.
Infact WPUEF adds a new meta box containing the extra user fields box next the customer info box. In this way you can have all the user and order infos under controll in one place!
Furthermore, every extra field can be optionally (or ONLY) displayed and edited also on the Checkout page. This can be usefull during user registration on checkout step. Extra fields will not be saved if guest checkout is allowed and for this the fields are automatically hidden if an user is not logged and are automatically showed if the ‘create account’ is checked
The admin can also display two custom HTML snippets before and after the checkout extra fields form. Go to Settings -> Extra fields menu to configure those fields.

WOOCOMMERCE FIELD ROW SIZE

You can optionally set fild row size: half-size (left/right) or full width size!

NOTE: this option cannot be applied to the “Country & State” field. It will have the full-width size.

BUDDYPRESS COMPATIBLE

WPUEF is BuddyPress compatible. This means that fields are automatically added in the user register page (optionally can be hidden to be diplayed in that page) and will be public viable in the user profile. Every user can edit those extra fields using their own edit profile page.

FIELDS CAN BE EDITABLE ONLY BY ADMIN

Shop admin can choose to create fields to be editable only by him and visible on user profile page

WOOCOMMERCE EMAILS SUPPORT

Optionally, all the users extra fields can be reported directly into the WooCommerce emails, in this way you can keep an eye on all the user extra info at once!

CUSTOM FORM SHORTCODE

WPUEF allows you to render custom forms with the selected extra fields on any page supporting wordpress shortcode system. To that use the [wpuef_extra_fields_custom_form field_ids=”“] where the field_ids parameter specifies the id of the fields that will be displayed. Ex.: [wpuef_extra_fields_custom_form field_ids=”c2,c5,c6,c18,c20”]

WORDPRESS FIREST AND LAST NAME FIELDS OVERWRITE

WPUEF gives you the possibility to store text field content into the default Name and Lastname wordpress fields. To that you have just to create a text field and then check the First/Last name overwrite option.

WOOCOMMERCE FIELDS OVERWRITE

WPUEF gives you the possibility to store field content into the default WooCommerce billing and shipping fields. All the fields can be overwritten.
To overwrite a field you have just to create a new text/country & state field (or email field in case you would like to overwrite the billing email address field) and then on the overwrite options selction select in which field the content has to be stored.

You can optionally assign to Billing name, Shipping name and user first name (same thing can be done for last name) the same value. Just select one of the Multiple overwrite options in the dropdown menu.

PASSWORD OVERWRITE AND WEAK PASSWORD USAGE

Optionally you can overwrite password field too. This can be useful if you want to allow weak password usage. Enabling this special option your customers will be able to register (and reset password on woocommerce reset password page) using any password, the plugin will override the default woocommerce password weakness check.
This special field will be visible ONLY in the register page, checkout register form and optionally in the My account page.

OTHER SHORTCODES

Would you like to display a field value for the current or a particular user? You can just using the [wpuef_show_field_value field_id=”” user_id=”“] shortcode.
A “field_id” must specified and optionally can also specified a “user_id” paramenter. The “user_id” will let you to display a field value for a particular user, if left empty will show field value for current user.
You can also automatically generate html links using the field content. For example, using a field with id c2:
[wpuef_show_field_value field_id="c2"]Test link[/wpuef_show_field_value]
You can also use html code like:
[wpuef_show_field_value field_id="c2"]<img src="http://example.com/example.png" alt="example" /><strong>Test</strong>[/wpuef_show_field_value]

RETRIEVE AND SAVE FIELDS DATA PROGRAMMATICALLY

WPUEF exposes two function:
  • wpuef_get_field($field_id, $user_id = null). The function will return an object containing all the field data (label, values, etc.). To know the object structure you can user the special wpuef_var_dump() function as follow:
    $result = wpuef_get_field('c13', 16669);
    var_dump($result); 
    
    The result will be:
    object(stdClass)#803 (7) {
      ["label"]=>
      string(6) "My custom dropdown field" 
      ["field_type"]=>
      string( 8 ) "dropdown" 
      ["required"]=>
      bool(false)
      ["field_options"]=>
      object(stdClass)#807 (2) {
        ["options"]=>
        array(3) {
          [0]=>
          object(stdClass)#782 (2) {
            ["label"]=>
            string(2) "Label string for option 1" 
            ["checked"]=>
            bool(false)
          }
          [1]=>
          object(stdClass)#757 (2) {
            ["label"]=>
            string(2) "Label string for option 2" 
            ["checked"]=>
            bool(false)
          }
          [2]=>
          object(stdClass)#758 (2) {
            ["label"]=>
            string(2) "Label string for option 3" 
            ["checked"]=>
            bool(false)
          }
        }
        ["include_blank_option"]=>
        bool(false)
      }
      ["cid"]=>
      string(2) "c6" 
      ["woocommerce_edit_on_my_account_page"]=>
      bool(true)
      ["value"]=>
      string(1) "1" 
    }
    
    To get the specific user selected value, use the “value” variable. Example:
    $result = wpuef_get_field('c13', 16669);
    var_dump($result->value); //Will print the user selected value for that field.
    
  • wpuef_set_field($field_id, $value, $user_id = null)
that lets you to read/save a field in your theme or plugin (field id value can be read in the visual editor after field creation).


KEEPS YOUR SERVER CLEAN

On user deletion, every file attached is deleted too.

VISUAL COMPOSER

Create and edit all the field you want WPUEF

WPUEF

REGISTRATION PAGE

Registration page example (using Theme my plugin that lets using site theme for registration page instead of the default one) WPUEF

Example using the default wordpress page WPUEF

MY ACCOUNT EDIT PAGE (FRONTEND)

WPUEF

WOOCOMMERCE REGISTRATION PAGE

WPUEF

WPUEF

WPUEF

WOOCOMMERCE EDIT ACCOUNT PAGE (FRONTEND)

WPUEF

WOOCOMMERCE ORDER DETAIL PAGE (ADMIN)

WPUEF

Extra field displayed on checkout page WPUEF

WPUEF

BUDDYPRESS USER PROFILE PAGE

WPUEF
WPUEF

CUSTOM FORM

WPUEF

OPTIONS TO overwrite FIRST AND LAST NAME WORDPRESS FIELDS

WPUEF

WPML TRANSLATION STRING PAGE WITH WPUEF DATA

WPUEF

CHANGE LOG


= 8.0 - 13.01.17 =
* Added option to reset all extra fields content for all users

= 7.9 - 03.01.17 =
* Added new HTML field

= 7.8 - 28.12.16 =
* Minor bugfix

= 7.7 - 21.12.16 =
* The plugin now sanatize file name before upload

= 7.6 - 13.12.16 =
* Fixed a bug that prevent file field to browse files

= 7.5 - 07.12.16 =
* Minor bugfix

= 7.4 - 02.12.16 =
* Added option to multiple overwrite first and last names. It is now possible 
  to multiple override billing, shipping first/last name with same value

= 7.3 - 22.11.16 =
* Minor bugfix 
* Added german translations (thanks to Nounours77)

= 7.2 - 21.11.16 =
* Fixed an issue that prevented to properly check number field min/max value on custom form

= 7.1 - 18.11.16 =
* Added new option to display before and after the WooCommerce checkout extra fields form an custom HTML snippet

= 7.0 - 16.11.16 =
* Added option to import/export fields settings

= 6.9 - 09.11.16 =
* Minor bugfix

= 6.8 - 02.11.16 =
* Minor bugfix

= 6.7 - 29.10.16 =
* Minor bugfix

= 6.6 - 27.10.16 =
* Minor bugfix

= 6.5 - 24.10.16 =
* Added new "Country & State" field
* Added option to position extra fields form before the standard fields form on WooCommerce registration page

= 6.4 - 12.10.16 =
* Is now possible use weak password also in woocommerce reset password page

= 6.3 - 29.09.16 =
* Improved "required" managment for already uploaded files on edit pages

= 6.2 - 25.09.16 =
* Added woocommerce password overwrite option

= 6.1 - 20.09.16 =
* Added new option to set field row size insiede woocommerce forms

= 6.0 - 19.09.16 =
* Added new options to overwrite WooCommerce field content. 
  NOTE: If you have configured some fields to overwrite WP first/last name, please reconfigure them.

= 5.9 - 05.09.16 =
* Fixed an issue that may prevent the checkout to be properly completed

= 5.8 - 29.08.16 =
* Added new buddypress options menu on field configurator

= 5.7 - 26.08.16 =
* Added option to store text field content on WordPress First/Last name field 

= 5.6 - 25.08.16 =
* Bugfix on checkout field visibility 

= 5.5 - 25.08.16 =
* Buddypress hide option: Fixed an issue that prevent field to be hidden in edit page
* Field configurator has been sempliefied

= 5.4 - 24.08.16 =
* Improved "required" check on chebkoxes field

= 5.3 - 23.08.16 =
* Fixed an issue that with dropdown menu and blank option 
* Fixed an issue that prevent field to be setted invisible in buddypress profile page

= 5.2 - 20.08.16 =
* Buddypress: prevented an issue that caused multiple fields printing on profile and edit pages

= 5.1 - 18.08.16 =
* Minor bugfix

= 5.0 - 15.08.16 =
* Added the [wpuef_extra_fields_custom_form] that allow custom form rendering

= 4.9 - 13.08.16 =
* WooCommerce: added option to position extra fields before/after billing/shipping address
* Minor bugfix

= 4.8 - 10.08.16 =
* Minor bugfix

= 4.7 - 21.07.16 =
* Fixed black site pages when the plugin was used in wordpress installation without woocommerce

= 4.6 - 21.07.16 =
* Extra fields are automatically hidden on checkout page if an user is not logged. They are automatically showed if the 'create account' is checked.

= 4.5 - 21.07.16 =
* Fixed an issue on Customer Details page (WCCM)

= 4.4 - 18.07.16 =
* Added Chinese (semplified) translation file

= 4.3 - 14.07.16 =
* Added new Settings menu (Settings -> User Extra Fields) to set date format in input text fields

= 4.2 - 06.07.16 =
* Fixed an export issue

= 4.1 - 04.07.16 =
* Minor bugfix

= 4.0 - 01.07.16 =
* Improved shortcode system 

= 3.9 - 27.06.16 =
* Fixed a small issue in the formbuilder.js

= 3.8 - 21.06.16 =
* Dates are now printend according to the selected wordpress date format selected

= 3.7 - 20.06.16 =
* Is now possible show extra fields in WooCommerce Customer Manager customers table, each field in its own column

= 3.6 - 19.06.16 =
* Added compability with WooCommerce 2.6.1

= 3.5 - 13.06.16 =
* Added BuddyPress compatibility

= 3.4 - 07.06.16 =
* Added new option to show fields in admin users table

= 3.3 - 05.05.16 =
* Bugfix on radiobox requirement check in register page

= 3.2 - 02.05.16 =
* Bugfix

= 3.1 - 06.04.16 =
* Improved registration required field check

= 3.0 - 24.03.16 =
* Added "placeholder" for html tags which support it

= 2.9 - 28.02.16 =
* Improve date selector

= 2.8 - 16.02.16 = 
* Samll bugfix

= 2.7 - 22.01.16 = 
* Added option to hide a field in the register page

= 2.6 - 21.01.16 = 
* Added [wpuef_show_field_value] shortcode

= 2.5 - 19.01.16 = 
* Added new "Invisible" field option

= 2.4 - 30.12.15 = 
* Added new "Visible only in register page" field option

= 2.3 - 14.12.15 = 
* Added Month and Year dropbox menu on date field javascript selector

= 2.2 - 10.12.15 = 
* Bugfix

= 2.1 - 02.12.15 = 
* Added some funtions to grant support to WooCommerce Customer Manager plugin

= 2.0 - 01.12.15 = 
* Bugfix on "My account" form submission

= 1.9 - 21.11.15 = 
* Removed "Extra info" title

= 1.8 - 20.11.15 =
* WooCommerce: added option to make extra field editable only on Shipping Address or Billing Address edit pages

= 1.7 - 12.11.15 =
* Https bug fix

= 1.6 - 02.11/15 =
* Added option to set fields to be editable ONLY on Checkout page

= 1.5 - 15/10/15 =
* Bugfix
* WooCommerce: is now possible to edit extra info directly in my account page

= 1.4 - 13/10/15 =
* Bugfix
* Is now possible to include extra fields in WooCommerce Emails

= 1.3 - 05/10/15 =
* Added extra checks on file upload (size and type)

= 1.2 - 02/10/15 =
* Added file extra field

= 1.1 - 22/09/15 =
* Feature added: Is now possible specify if a field can be edited in checkout page

= 1.0 - 19/09/15 =
* Release

by
by
by
by
by
by