# Basic

## 1: **Basic Settings**

From: **Dashboard of Vendors >> Create Event**&#x20;

<figure><img src="https://4016371164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1-bzGggknMKVWOqg5-%2Fuploads%2FyVZxr5VZhNNsojoOwj2g%2Fbasic.png?alt=media&#x26;token=cb1664c1-5227-4e04-b4eb-e5483aca12db" alt=""><figcaption></figcaption></figure>

Vendors can add details for their events:&#x20;

### 1: Name of event

### 2: Category of event

Only admin can add categories. [Read here](../../admin-features/manage-categories)

### 3: Timezone

* The admin can set the default timezone by adding the code below to the `functions.php` file in the child theme

```
add_filter( 'el_set_timezone_default', function(){  return 'UTC+3'; } );
```

* The admin can remove default timezone by adding the code bellow to `functions.php`  file in the child theme

```
add_filter( 'el_show_timezone', '__return_false' );
```

### 4: Custom Taxonomy

Only Admin can create custom taxonomies. [Read here](../../admin-features/custom-taxonomy)

* The admin can remove some custom taxonomy by using code bellow and insert it to `functions.php` file in child theme

```
add_filter( 'el_exclude_custom_taxonomy', 'el_exclude_custom_taxonomy_customize' );
function el_exclude_custom_taxonomy_customize(){
    return array( 'slug of custom taxonomy' );
}
```

### 5: Tags

### 6: Visibility

If the admin needs to review the event before publishing ([read here](../../settings/role)), the visibility will be set to "Pending" by default.

### 7: Description

The admin can add the code bellow to  `functions.php` file in the child theme

```
add_filter( 'el_vendor_add_media_content_event', function(){ return true; } );
```

### 8: Event Type

* The admin can setup Default Type by Adding the code bellow to `functions.php` file in the child theme

```
// Choose Physical location is default
add_filter( 'el_event_type_default', function(){  return 'classic'; } );

// Choose Online is default
add_filter( 'el_event_type_default', function(){  return 'online'; } );
```

* The admin can remove an option in Event Type by adding the code bellow to `functions.php` file in the child theme

```
// Remove Physical location
add_filter( 'el_show_event_type_physical', '__return_false' );

// Remove Online
add_filter( 'el_show_event_type_online', '__return_false' );
```

**Please, note**: If the "Physical Location" option is selected in the "Event Type" tab, the vendor can set a map for the event location. To configure the map, the admin can go to the backend settings [read here](../../../settings/general#id-2-map-settings)

### 9: Contact Info

### 10: Feature Image

### 11: Gallery

### 12: Video

### 13: Display Top Banner

## **2: Customize template**

Without using the above filter hooks, you can customize the template in the child theme.:

```
Copy file:
wp-content/plugins/eventlist/templates/vendor/__edit-event-basic.php 
to
wp-content/themes/meup-child/eventlist/vendor/__edit-event-basic.php
and edit code in that file
```

## 3: Some Hooks

### a) Fields are mandatory when creating events

Add the code bellow to `functions.php` file in the child theme. Change `"true"` to `"false"` if you don’t want this field to be required

```
add_filter( 'el_event_req_field', 'el_event_req_field_customize' );
function el_event_req_field_customize(){

	$event_req_field = array(
		'event_name' => array(
			'required' => true,
			'message'  => __( 'Event name is required', 'eventlist' )
		),
		'event_cat' => array(
			'required' 	=> true,
			'message' 	=> __( 'Category is required', 'eventlist' ),
		),
		'description' => array(
			'required' 	=> true,
			'message' 	=> __( 'Description is required', 'eventlist' ),
		),
		'img_thumbnail' => array(
			'required' 	=> true,
			'message' 	=> __( 'Image feature is required', 'eventlist' ),
		),
		'timezone' => array(
			'required' 	=> true,
			'message' 	=> __( 'Timezone is required', 'eventlist' ),
		),
		'event_tag' => array(
			'required' 	=> true,
			'message' 	=> __( 'Tag is required', 'eventlist' ),
		),
		'event_venue' => array(
			'required' 	=> true,
			'message' 	=> __( 'Venue name is required', 'eventlist' )
		),
		'event_gallery' => array(
			'required' 	=> true,
			'message' 	=> __( 'Gallery is required', 'eventlist' )
		),
		'event_video' => array(
			'required' 	=> true,
			'message' 	=> __( 'Video is required', 'eventlist' ),
		),
	);

	return $event_req_field;

}
```

### b) The custom taxonomy is mandatory

If a custom taxonomy has a slug such as `"eljob"` , `"eltime"`, you can add the following code to the `functions.php` file in your child theme.

```
add_filter( 'el_custom_taxonomy_required', 'el_custom_taxonomy_required_customize' );
function el_custom_taxonomy_required_customize(){

	return array( 'eljob', 'eltime' );
}
```
