Basic
1: Basic Settings
Go to My Account >> Create Event >> Insert Infomation in some tabs:

1: Name of event
2: Category of event
Only admin can update categories. Read here
3: Timezone
Setup default Timezone by adding bellow code to functions.php file in child theme
add_filter( 'el_set_timezone_default', function(){ return 'UTC+3'; } );
You can remove it by adding bellow code to functions.php file in child theme
add_filter( 'el_show_timezone', '__return_false' );
4: Custom Taxonomy
Only Admin can setup custom taxonomy. Read here
You aslso can remove some custom taxonomy by using code and insert to 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 need to check event before publish (read here), so the Visibility will set Pending Default.
7: Description
Add Images in Description: You can add bellow code in functions.php file child theme
add_filter( 'el_vendor_add_media_content_event', function(){ return true; } );
8: Event Type
Setup Default Type: Add bellow code in functions.php file in 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'; } );
Remove an option: Add bellow code in functions.php file in 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' );
9: Contact Info
10: Feature Image
11: Gallery
12: Video
13: Display Top Banner
2: Customize template
Without use some above filter hook, you can customize template in 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 bellow code to functions.php file in child theme. Change the value "true" to "false" if you do not 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 custome taxonomy is mandatory
If custom taxonomy has slug like "eljob", "eltime", you can insert bellow code to funcitons.php file in child theme
add_filter( 'el_custom_taxonomy_required', 'el_custom_taxonomy_required_customize' );
function el_custom_taxonomy_required_customize(){
return array( 'eljob', 'eltime' );
}
Last updated
Was this helpful?