Title: Custom WP Registration Form
Author: Adam Carter
Published: <strong>كانونی دووه‌م 14, 2016</strong>
Last modified: كانونی دووه‌م 14, 2016

---

گەڕان لە پێوەکراوەکان

![](https://ps.w.org/custom-wp-registration-form/assets/banner-772x250.jpg?rev=1328316)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/custom-wp-registration-form/assets/icon-128x128.jpg?rev=1328316)

# Custom WP Registration Form

 لەلایەن [Adam Carter](https://profiles.wordpress.org/adamcarter/)

[داگرتن](https://downloads.wordpress.org/plugin/custom-wp-registration-form.zip)

 * [وردەکارییەکان](https://ku.wordpress.org/plugins/custom-wp-registration-form/#description)
 * [پێداچوونەوەکان](https://ku.wordpress.org/plugins/custom-wp-registration-form/#reviews)
 *  [دامەزراندن](https://ku.wordpress.org/plugins/custom-wp-registration-form/#installation)
 * [گەشەپێدان](https://ku.wordpress.org/plugins/custom-wp-registration-form/#developers)

 [پشتیوانی](https://wordpress.org/support/plugin/custom-wp-registration-form/)

## وەسف

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](https://github.com/Magnacarter/custom-wp-registration-form).
Pull requests welcome. Please see [issues](https://github.com/Magnacarter/custom-wp-registration-form/issues)
reported there before going to the plugin forum.**

## سکرین شۆتەکان

 * [[
 * Form the example array in the docs renders.
 * [[
 * Example of predefined user fields rendered in the default user WordPress profile.
 * [[
 * Example of custom user fields rendered in the default user WordPress profile.

## دامەزراندن

 1. Upload the plugin files to the `/wp-content/plugins/custom-wp-registration-form`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Create a form object in a .php file where you would like the form to appear. Example:
    page-register.php
     A. the CWRF_Form object takes three arguments 1. string `$form_name`–
    default is “”. 2. array `$fields` – pass your array of input fields 3. string `
    $submit_text` – This is the text that appears on the submit button. Default is ‘
    Submit’.
 4.     ```
        Example : `$form = new CWRF_Form( $form_name, $fields, $submit_text );`
        ```
    
 5. B. Build the array. Here is the array used to build the form in the screenshots
    section.
     1. assign classes and ID’s to retain full style control of all inputs.
    2. each input field and textarea is wrapped in a `<div class="your-class">`. ID’s
    are assigned to the input and textarea tags themselves.
 6.     ```
                $fields = array(
                                'First Name' => array(
                                    'name'        => 'first_name',
                                    'type'        => 'text',
                                    'id'          => 'first_name',
                                    'class'       => '',
                                    'minlength'   => 1,
                                    'maxlength'   => 50,
                                    'placeholder' => 'First Name',
                                    'required'    => true
                                ),
                                'Last Name' => array(
                                    'name'        => 'last_name',
                                    'type'        => 'text',
                                    'id'          => 'last_name',
                                    'class'       => '',
                                    'minlength'   => 1,
                                    'maxlength'   => 50,
                                    'placeholder' => 'Last Name',
                                    'required'    => true
                                ),
                                'Username' => array(
                                    'name'        => 'user_login',
                                    'type'        => 'text',
                                    'id'          => 'user_login',
                                    'class'       => '',
                                    'minlength'   => 1,
                                    'maxlength'   => 50,
                                    'placeholder' => 'User Login',
                                    'rows'        => '',
                                    'cols'        => '',
                                    'required'    => true
                                ),
                                'Password' => array(
                                    'name'        => 'user_pass',
                                    'type'        => 'password',
                                    'id'          => 'user_pass',
                                    'class'       => '',
                                    'minlength'   => 1,
                                    'maxlength'   => 50,
                                    'placeholder' => 'Password',
                                    'rows'        => '',
                                    'cols'        => '',
                                    'required'    => true
                                ),
                                'Email Address' => array(
                                    'name'        => 'user_email',
                                    'type'        => 'email',
                                    'id'          => 'user_email',
                                    'class'       => '',
                                    'minlength'   => 1,
                                    'maxlength'   => 50,
                                    'placeholder' => 'jon@mail.com',
                                    'required'    => false
                                ),
                                'Options' => array(
                                    'name'        => 'favorite_fruit',
                                    'type'        => 'select',
                                    'id'          => 'favorite_fruit',
                                    'class'       => '',
                                    'options'     => array( 'apple', 'cherry', 'pear' ),
                                    'required'    => false
                                ),
                                'Gender' => array(
                                    'name'        => 'gender',
                                    'type'        => 'radio',
                                    'id'          => 'gender',
                                    'class'       => '',
                                    'value'       => array( 'male', 'female' ),
                                    'required'    => false
                                ),
                                'Bio' => array(
                                    'name'        => 'description',
                                    'type'        => 'textarea',
                                    'id'          => 'description',
                                    'class'       => '',
                                    'minlength'   => 1,
                                    'maxlength'   => 500,
                                    'placeholder' => 'Add your bio',
                                    'rows'        => 5,
                                    'cols'        => 50,
                                    'required'    => false
                                )
                            );
    
                            $form = new CWRF_Form( 'Test Form', $fields, 'Sign Up!' );
        ```
    
 7. C. Note, the array values that match the WordPress syntax for insertion to the 
    default WordPress profile page in the admin panel. When you don’t use this syntax,
    values will be added below the premade profile meta section. Refer to screenshots
    to see how this form is rendered in the default WordPress user profile page.
 8. D. Form is set to `method = 'POST'`

## پێداچوونەوەکان

هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.

## بەشداربووان و گەشەپێدەران

“Custom WP Registration Form” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە
بەشدارییان تێدا کردووە.

بەشداربووان

 *   [ Adam Carter ](https://profiles.wordpress.org/adamcarter/)

[“Custom WP Registration Form” وەربگێڕە بۆ زمانەکەی خۆت.](https://translate.wordpress.org/projects/wp-plugins/custom-wp-registration-form)

### دەتەوێت بەشداربیت لە گەشەپێدان؟

[گەڕان لە کۆدەکەدا بکە](https://plugins.trac.wordpress.org/browser/custom-wp-registration-form/)،
سەیری [تەمارگەی (SVN)](https://plugins.svn.wordpress.org/custom-wp-registration-form/)
بکە، یان بەشداربە لە [ڕووداوتۆماری گەشەپێدان](https://plugins.trac.wordpress.org/log/custom-wp-registration-form/)
لە ڕێگەی [(RSS)](https://plugins.trac.wordpress.org/log/custom-wp-registration-form/?limit=100&mode=stop_on_copy&format=rss).

## ڕووداوتۆمارگەریی گۆڕین

#### 1.0.0 – January 14, 20116

Initial release!

Props [Magnacarter](https://github.com/Magnacarter)

## مێتا

 *  وەشان **1.0.0**
 *  دوایین بەڕۆژکردنەوە **10 ساڵ لەمەوبەر**
 *  دامەزراندنی چالاک **10+**
 *  وەشانی وۆردپرێس ** 3.0.1 یان بەرزتر **
 *  تاقیکراوەتەوە تا **4.4.34**
 *  زمان
 * [English (US)](https://wordpress.org/plugins/custom-wp-registration-form/)
 * تاگەکان
 * [custom](https://ku.wordpress.org/plugins/tags/custom/)[registration](https://ku.wordpress.org/plugins/tags/registration/)
   [registration form](https://ku.wordpress.org/plugins/tags/registration-form/)
   [secure](https://ku.wordpress.org/plugins/tags/secure/)[wordpress plugin](https://ku.wordpress.org/plugins/tags/wordpress-plugin/)
 *  [بینینی پێشکەوتوو](https://ku.wordpress.org/plugins/custom-wp-registration-form/advanced/)

## هەڵسەنگاندنەکان

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/custom-wp-registration-form/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-wp-registration-form/reviews/)

## بەشداربووان

 *   [ Adam Carter ](https://profiles.wordpress.org/adamcarter/)

## پشتیوانی

هیچت هەیە بۆ وتن؟ پێویستت بە یارمەتییە؟

 [بینینی مەکۆی پاڵپشتی](https://wordpress.org/support/plugin/custom-wp-registration-form/)