

## **How to install**

### 1. Install REGA in Wordpress Plugin normally.

### 2. Goto `WP > Settings > REGA` page

### 3. insert status widget: just add this widget in any page you want.
```php
$instance = array(
    'rega_edit_slug' => '/rega-edit' );
the_widget( 'Rega_Status_Widget', $instance );  
```

### 4. insert input widget: just add this widget in any page you want.
```php
the_widget( 'Rega_Input_Widget');
```

## **Install on Houzez:**
Repeate same steps of 1 and 2.
### 3. In `houzez/template-parts/user-profile.php` insert this code anywhere in the page:

```html
<!-- SAMI EDIT  -->
<div class="col-sm-6 col-xs-12">
    <div class="form-group">                                
        <?php 
            $instance = array(
                'rega_edit_slug' => '/rega-edit' );
            the_widget( 'Rega_Status_Widget', $instance );  
        ?>
    </div>
</div>

```


### 4. Create a new page (REGA Edit)
1. Copy this file in `public_html/wp-content/themes/houzez/template`
2. in WP -> Add New Page -> then:
    - **Parent**: None
    - **Template**: User Dashboard Rega
    - **Advanced Search**: Custome Settings for this page
3. save the slug: /rega-edit
